wpInsertMenuItems - Syntax

This method is specific to Version 4, or higher, of the OS/2 operating system.

This instance method is called to allow an object to insert items into its pop-up menu.

#define INCL_WINWORKPLACE
#include <os2.h>

WPObject     *somSelf;      /*  Pointer to the object on which the method is being invoked. */
HWND          hwndMenu;     /*  Handle to the pop-up menu. */
ULONG         iPosition;    /*  Position at which to start inserting items. */
HMODULE       hmod;         /*  Module handle where MenuID can be found. */
ULONG         MenuID;       /*  ID of menu to put into pop-up menu. */
ULONG         ulSubMenuId;  /*  ID of submenu to put into pop-up menu. */
BOOL          rc;           /*  Success indicator. */

rc = _wpInsertMenuItems(somSelf, hwndMenu,
       iPosition, hmod, MenuID, ulSubMenuId);


[Back: wpInsertMenuItems]
[Next: wpInsertMenuItems Parameter - somSelf]