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 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. */ ULONG ulMenuType; /* The type of menu that is being built. */ ULONG ulView; /* The view that the menu is being invoked on. */ ULONG ulReserved; /* Reserved. Set to 0. */ BOOL rc; /* Success indicator. */ rc = _wpModifyMenu(somSelf, hwndMenu, hwndCnr, iPosition, ulMenuType, ulView, ulReserved);