Jump to content

wpQueryDefaultView

From EDM2

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