LoadMenuIndirect

Syntax

HMENU LoadMenuIndirect(lpMenuTemplate)

This function loads into memory the menu named by the lpMenuTemplate parameter. The template specified by lpMenuTemplate is a header followed by a collection of one or more MENUITEMTEMPLATE structures, each of which may contain one or more menu items and pop-up menus.

Parameter Type/Description  

lpMenuTemplate LPSTR Points to a menu template (which is a collection of one or more MENUITEMTEMPLATE structures).  

Return Value

The return value identifies the menu if the function is successful. Otherwise, it is NULL.