wpSetMenuStyle
Appearance
This method is **specific to Version 4, or higher, of the OS/2 operating system**.
This instance method **sets the menu style to be either long or short**.
Syntax
_wpSetMenuStyle(somSelf, ulStyle)
Parameters
- somSelf (WPObject *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPObject.
- ulStyle (ULONG) - input
- Menu style.
- Possible values include:
- MENUS_LONG: Long menus.
- MENUS_SHORT: Short menus.
- MENUS_DEFAULT: Sets the menu style to the default style.
Returns
- rc (BOOL) - returns
- Success indicator.
- TRUE: Successful completion**.
- FALSE: Error occurred**.
Remarks
This method is listed as an instance method for the `WPObject` class.
Usage
This method can be **called at any time in order to indicate whether this object displays long or short pop-up menus**.
How to Override
This method is **generally not overridden**.
Example Code
Declaration:
#define INCL_WINWORKPLACE #include WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */ ULONG ulStyle; /* Menu style. */ BOOL rc; /* Success indicator */ rc = _wpSetMenuStyle(somSelf, ulStyle);
The following example lets you indicate that the current object is to display short pop-up menus:
_wpSetMenuStyle(somSelf,MENUS_SHORT);