|
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.
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|