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 SubMenuId; /* ID of submenu to put into pop-up menu. */
BOOL rc; /* Success indicator. */
rc = _wpInsertPopupMenuItems(somSelf, hwndMenu,
iPosition, hmod, MenuID, SubMenuId);