Jump to content

wpQueryMenuBarVisibility

From EDM2
Revision as of 03:39, 25 November 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:wpQueryMenuBarVisibility}} This method is specific to Version 4, or higher, of the OS/2 operating system. This instance method returns the visibility state of the folder's menu bar. ==Syntax== _wpQueryMenuBarVisibility(somSelf) ==Parameters== ;''somSelf'' (WPFolder *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPFolder. ==Returns== ;''rc'' (ULONG) - returns :Visibility state. :* **MEN...")
(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 visibility state of the folder's menu bar.

Syntax

_wpQueryMenuBarVisibility(somSelf)

Parameters

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

Returns

rc (ULONG) - returns
Visibility state.
  • **MENUBAR_ON** Menu bar is visible.
  • **MENUBAR_OFF** Menu bar is invisible.

How to Override

This method is generally not overridden.

Usage

This method can be called at any time in order to determine whether or not an open view of this folder displays a menu bar.

Remarks

This method is not covered in the provided text.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPFolder *somSelf; /* Pointer to the object on which the method is being invoked. */
ULONG rc; /* Visibility state. */

rc = _wpQueryMenuBarVisibility(somSelf);

/* Example code provided in the source: */
  ULONG ulMenuBarOption;

  ulMenuBarOption = _wpQueryMenuBarVisibility(somSelf);
  /* ulMenuBarOption is MENUBAR_ON or MENUBAR_OFF */

Related Methods