HMENU LoadMenuIndirect(lpMenuTemplate) | |||||
LPMENUTEMPLATE lpMenuTemplate; | /* address of menu template | */ |
The LoadMenuIndirect function loads the specified menu template in memory. A menu template is a header followed by a collection of one or more MENUITEMTEMPLATE structures, each of which defines a menu item.
lpMenuTemplate
Points to the menu template to be loaded.
The return value is the handle of the menu if the function is successful. Otherwise, it is NULL. To obtain extended error information, use the GetLastError function.
The LoadMenuIndirect function may be used as either a wide-character function (where text arguments must use Unicode) or an ANSI function (where text arguments must use characters from the Windows 3.x character set).
If this function is called as an ANSI function, all text strings in the MENUITEMTEMPLATE structure must be Windows ANSI strings. Similarly, if this function is called as a Unicode function, all text strings in the MENUITEMTEMPLATE structure must be Unicode strings.
LoadMenu