WinLoadMenu - Syntax

This function creates a menu window from the menu template idMenu from hmod, and returns in hwndMenu the window handle for the created window.

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

HWND       hwndFrame;  /*  Owner- and parent-window handle. */
HMODULE    hmod;       /*  Resource identifier. */
ULONG      idMenu;     /*  Menu identifier within the resource file. */
HWND       hwndMenu;   /*  Menu-window handle. */

hwndMenu = WinLoadMenu(hwndFrame, hmod, idMenu);


[Back: WinLoadMenu]
[Next: WinLoadMenu Parameter - hwndFrame]