Type MENUINFO cbSize As Long fMask As Long dwStyle As Long cyMax As Long hbrBack As Long dwContextHelpID As Long dwMenuData As Long End Type
Структура MENUINFO содержит информацию о меню
MIM_APPLYTOSUBMENUS = &H80000000 | Установки относятся к меню и его подменю (используется в SetMenuInfo и игнорируется в GetMenuInfo |
MIM_BACKGROUND = &H2 | Возвращает или устанавливает hbrBack |
MIM_HELPID | Возвращает или устанавливает dwContextHelpID |
MIM_MAXHEIGHT | Возвращает или устанавливает cyMax |
MIM_MENUDATA | Возвращает или устанавливает dwMenuData |
MIM_STYLE | Возвращает или устанавливает dwStyle |
MNS_AUTODISMISS | Menu automatically ends when mouse is outside the menu for approximately 10 seconds |
MNS_CHECKORBMP | The same space is reserved for the check mark and the bitmap. If the check mark is drawn, the bitmap is not. All checkmarks and bitmaps are aligned. Used for menus where some items use checkmarks and some use bitmaps |
MNS_DRAGDROP | Menu items are OLE drop targets or drag sources. Menu owner receives WM_MENUDRAG and WM_MENUGETOBJECT messages |
MNS_MODELESS | Menu is modeless; that is, there is no menu modal message loop while the menu is active |
MNS_NOCHECK | No space is reserved to the left of an item for a check mark. The item can still be selected, but the check mark will not appear next to the item |
MNS_NOTIFYBYPOS | Menu owner receives a WM_MENUCOMMAND message instead of a WM_COMMAND message when the user makes a selection |