This instance method is called to allow an object to add additional items to 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; /* Menu handle. */ HWND hwndCnr; /* Handle to container control window. */ ULONG iPosition; /* Position to insert menu items. */ BOOL rc; /* Success indicator. */ rc = _wpModifyPopupMenu(somSelf, hwndMenu, hwndCnr, iPosition);