This function creates a menu window from the menu template.

#define INCL_WINMENUS /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HWND     hwndParent;  /*  Owner- and parent-window handle of the created menu window. */
PVOID    lpmt;        /*  Menu template in binary format. */
HWND     hwndMenu;    /*  Menu-window handle. */

hwndMenu = WinCreateMenu(hwndParent, lpmt);


[Back] [Next]