|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| user32.lib
| Header File
| winuser.h
| Unicode
| WinNT
| Platform Notes
| None
|
|
|
LoadMenu
The LoadMenu function loads the specified menu resource from the executable (.EXE) file
associated with an application instance.
HMENU LoadMenu(
HINSTANCE hInstance,
| // handle of application instance
| LPCTSTR lpMenuName
| // menu name string or menu-resource identifier
| );
|
|
Parameters
hInstance
Identifies the instance of the module containing the menu resource to be
loaded.
lpMenuName
Points to a null-terminated string that contains the name of the menu
resource. Alternatively, this parameter can consist of the resource identifier in the
low-order word and zero in the high-order word. To create this value, use the MAKEINTRESOURCE macro.
Return Values
If the function succeeds, the return value is the handle of the menu resource.
If the function fails, the return value is NULL. To get extended error
information, call GetLastError.
Remarks
The DestroyMenu function is used, before an application closes, to destroy the menu and free
memory that the loaded menu occupied.
See Also
LoadMenuIndirect, MAKEINTRESOURCE
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
TMS Scripter Studio Pro components for Delphi/C++Builder
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
|