HMENU LoadMenu(hInstance,lpMenuName)
This function loads the menu resource named by the lpMenuName parameter from the executable file associated with the module specified by the hInstance parameter.
Parameter | Type/Description |
hInstance | HANDLE Identifies an instance of the module whose executable file contains the menu. | |
lpMenuName | LPSTR Points to a character string that names the menu resource. The string must be a null-terminated character string. |
The return value identifies a menu resource if the function is successful. Otherwise, it is NULL.
The lpMenuName parameter can contain a value created by the MAKEINTRESOURCE macro. If it does, the ID must reside in the low-order word of lpMenuName, and the high-order word must be set to zero.