This instance method is called to allow an object to process a pop-up menu selection.
#define INCL_WINWORKPLACE
#include <os2.h>
WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */
HWND hwndFrame; /* Handle to the frame window. */
ULONG ulMenuId; /* ID of the selected pop-up menu. */
BOOL rc; /* Success indicator. */
rc = _wpMenuItemSelected(somSelf, hwndFrame,
ulMenuId);