Menu Display

After a menu has been loaded or created, it must be assigned to a window before Windows can display it. You can assign a menu by defining a class menu. For more information about class menus, see Window Class Menus. You can also assign a menu to a window by specifying the handle of the menu as the hMenu parameter of the CreateWindow or CreateWindowEx function, or by calling the SetMenu function.

To display a shortcut menu use the TrackPopupMenuEx function. Shortcut menus, also called floating pop-up menus or context menus, are typically displayed when the WM_CONTEXTMENU message is processed.

The older TrackPopupMenu function is still supported, but new applications should use the TrackPopupMenuEx function.

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