Jump to content

WpQueryDefaultView: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:wpQueryDefaultView}} This instance method is called to allow the object to query its current default open view. ==Syntax== _wpQueryDefaultView(somSelf) ==Parameters== ;''somSelf'' (WPObject *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPObject. ==Returns== ;''ulView'' (ULONG) - returns :Flag indicating the default open view. :* OPEN_CONTENTS: Open contents view. :* OPEN_DEFAULT: Open defa..."
 
 
Line 46: Line 46:


==Related Methods==
==Related Methods==
* wpQueryDefaultView
* [[wpclsQueryDefaultView]]
* [[wpclsQueryDefaultView]]
* [[wpSetDefaultView]]
* [[wpSetDefaultView]]


[[Category:Workplace Instance Methods]]
[[Category:Workplace Instance Methods]]

Latest revision as of 21:54, 1 September 2025

This instance method is called to allow the object to query its current default open view.

Syntax

_wpQueryDefaultView(somSelf)

Parameters

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

Returns

ulView (ULONG) - returns
Flag indicating the default open view.
  • OPEN_CONTENTS: Open contents view.
  • OPEN_DEFAULT: Open default view (same as double-click).
  • OPEN_DETAILS: Open details view.
  • OPEN_HELP: Display HelpPanel.
  • OPEN_RUNNING: Execute object.
  • OPEN_SETTINGS: Open Settings notebook.
  • OPEN_TREE: Open tree view.
  • OPEN_UNKNOWN: Unknown view.
  • OPEN_USER: Class-specific views have a greater value than this.

Remarks

This method returns the default open view for this instance. The default open view is displayed when a user double-clicks on the object or selects Open without selecting an item in the open cascade.

Usage

This method can be called at any time in order to determine its default open view.

How to Override

This method is generally not overridden.

Example Code

Declaration:

#define INCL_WINWORKPLACE
#include <os2.h>

WPObject     *somSelf;   /* Pointer to the object on which the method is being invoked. */
ULONG        ulView;     /* Flag indicating the default open view. */

ulView = _wpQueryDefaultView(somSelf);


Related Methods