Menu Reference

The functions, structures, and messages used with menus are grouped in the following manner.

Menu Handles

GetMenu

GetSubMenu
GetSystemMenu
IsMenu

Menu-Item Information

GetMenuItemCount

GetMenuItemID
GetMenuItemInfo
GetMenuState
GetMenuString

SetMenuItemInfo
MENUITEMINFO

Default Menu Items

GetMenuDefaultItem

SetMenuDefaultItem

Menu-Item States

CheckMenuItem

CheckMenuRadioItem
EnableMenuItem
GetMenuCheckMarkDimensions
HiliteMenuItem
SetMenuItemBitmaps

Menu Templates

LoadMenu

LoadMenuIndirect
MENUITEMTEMPLATE
MENUITEMTEMPLATEHEADER
MENUEX_TEMPLATE_HEADER
MENUEX_TEMPLATE_ITEM

Menu Creation and Modification

AppendMenu

CreateMenu
CreatePopupMenu
DeleteMenu
DestroyMenu
DrawMenuBar
InsertMenu
InsertMenuItem
ModifyMenu
RemoveMenu

SetMenuItemInfo

Menu Display

SetMenu

TrackPopupMenu
TrackPopupMenuEx
WM_CONTEXTMENU

Superseded Functions

The following older menu functions have been superseded. When writing an application, you should use the new function instead of the corresponding old function.

Old function
New function
AppendMenu
InsertMenuItem
ChangeMenu
SetMenuItemInfo
CheckMenuItem
SetMenuItemInfo
GetMenuState
GetMenuItemInfo
InsertMenu
InsertMenuItem
ModifyMenu
SetMenuItemInfo

Obsolete Functions

ChangeMenu

Menu Messages

WM_COMMAND
WM_CONTEXTMENU
WM_DRAWITEM
WM_ENTERMENULOOP
WM_EXITMENULOOP
WM_INITMENU
WM_INITMENUPOPUP
WM_MEASUREITEM
WM_MENUCHAR
WM_MENUSELECT
WM_SYSCOMMAND

Extended Menu Functions

CheckMenuRadioItem

GetMenuDefaultItem
GetMenuItemInfo
GetMenuItemRect
InsertMenuItem
MenuItemFromPoint
SetMenuDefaultItem
SetMenuItemInfo
TrackPopupMenuEx

Extended Menu Messages

WM_CONTEXTMENU

Extended Menu Structures

MENUEX_TEMPLATE_HEADER

MENUEX_TEMPLATE_ITEM
MENUITEMINFO
TPMPARAMS

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database