This method is specific to Version 4, or higher, of the OS/2 operating system.
This instance method filters out options from the object's pop-up menu that do not apply.
#define INCL_WINWORKPLACE
#include <os2.h>
WPObject *somSelf;
FILTERFLAGS *pFlags; /* Pop-up menu flags. */
HWND hwndCnr; /* Handle to container control window. */
BOOL fMultiSelect; /* Multiple menu items flag. */
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; /* New pop-up menu flags for this object. */
rc = _wpFilterMenu(somSelf, pFlags, hwndCnr,
fMultiSelect, ulMenuType, ulView, ulReserved);