win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinCreateMenu (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMENUS
 
HWND WinCreateMenu(hwndParent, pvmt)
HWND hwndParent;    /* handle of the parent window  */
PVOID pvmt;         /* address of the menu template */
 
The WinCreateMenu function creates a menu window from a menu template. The
menu window is created with its parent and owner set to the hwndParent
parameter.
 
Parameter   Description
────────────────────────────────────────────────────────────────────────────
 
hwndParent  Identifies the owner and parent window which should be a frame
            window.
 
pvmt        Points to the menu template. The format of the pvmt parameter is
            the binary menu-template-resource format.
 
Return Value
 
The return value is the menu-window handle, or zero if an error occurred.
 
See Also
 
WinCreateWindow, WinLoadMenu