Loadfunction
Loads the specified menu resource from the executable (.exe) file associated with an application instance.
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.
Syntax
FUNCTION Load (BYVAL hInst AS HINSTANCE, BYVAL pMenuName AS WSTRING PTR) AS HMENU
Parameters
| Name | Description | |
|---|---|---|
hInst | A handle to the module containing the menu resource to be loaded. | |
pMenuName | 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 value
If the function succeeds, the return value is a handle to the menu resource.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
Description
Loads the specified menu resource from the executable (.exe) file associated with an application instance.
Remarks
The CMenu.Destroy method is used, before an application closes, to destroy the menu and free memory that the loaded menu occupied.
Reference
- Documented in Windows/WIndows Controls/CMenu Class.md
- Topic: About Menus