This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method creates and displays an object's popup context menu.
#define INCL_WINWORKPLACE #include <os2.h> WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */ HWND hwndOwner; /* Handle of the window that the menu is owned by. */ HWND hwndClient; /* Handle of the window on which the menu is displayed. */ POINTL *ptlPopupPt; /* Coordinates of the starting position for the menu. */ ULONG ulMenuType; /* Type of menu to display. */ ULONG ulReserved; /* Reserved value. */ HWND hwndMenu; /* Menu handle. */ hwndMenu = _wpDisplayMenu(somSelf, hwndOwner, hwndClient, ptlPopupPt, ulMenuType, ulReserved);