Jump to content

wpQueryMenuStyle

From EDM2
Revision as of 00:16, 2 September 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:wpQueryMenuStyle}} This method is **specific to Version 4, or higher, of the OS/2 operating system**. This instance method **returns the current menu style, which is either long or short**. ==Syntax== _wpQueryMenuStyle(somSelf) ==Parameters== ;''somSelf'' (WPObject *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPObject. ==Returns== ;''ulStyle'' (ULONG) - returns :Menu style. :Possible...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This method is **specific to Version 4, or higher, of the OS/2 operating system**.

This instance method **returns the current menu style, which is either long or short**.

Syntax

_wpQueryMenuStyle(somSelf)

Parameters

somSelf (WPObject *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPObject.

Returns

ulStyle (ULONG) - returns
Menu style.
Possible values include:
MENUS_LONG: Long menus.
MENUS_SHORT: Short menus.

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 determine 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. */

ulStyle = _wpQueryMenuStyle(somSelf);

The following example determines whether this object displays long or short pop-up menus:

ULONG ulMenuStyle;
ulMenuStyle = _wpQueryMenuStyle(somSelf);
/* ulMenuStyle is MENUS_LONG or MENUS_SHORT */

Related Methods