Jump to content

wpSetMenuBarVisibility

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

Syntax

_wpSetMenuBarVisibility(somSelf, ulVisibility)

Parameters

somSelf (WPFolder *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPFolder.
ulVisibility (ULONG) - input
Visibility state.
  • **MENUBAR_ON** Makes the menu bar visible.
  • **MENUBAR_OFF** Makes the menu bar invisible.
  • **MENUBAR_DEFAULT** Sets the menu bar visibility to the default state.

Returns

rc (BOOL) - returns
Success indicator.
  • TRUE Successful completion.
  • FALSE Error occurred.

How to Override

This method is generally not overridden.

Usage

This method can be called at any time in order to indicate whether or not this folder displays menu bars.

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 ulVisibility; /* Visibility state. */
BOOL rc; /* Success indicator */

rc = _wpSetMenuBarVisibility(somSelf, ulVisibility);

/* Example code provided in the source: */
  _wpSetMenuBarVisibility(somSelf,MENUBAR_OFF);

Related Methods