Jump to content

wpSetDefaultView

From EDM2

This instance method is called to allow an object to change its current default open view.

Syntax

_wpSetDefaultView(somSelf, ulView);

Parameters

somSelf (WPObject *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPObject.
ulView (ULONG) - input
Specifies which view to open.
  • 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_USER: Class-specific views have a greater value than this.

Returns

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

Remarks

The default open view for this class can be determined by calling the wpclsQueryDefaultView method.

Usage

This method can be called at any time in order to set the default open view for this object.

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;    /* Specifies which view to open. */
BOOL         rc;        /* Success indicator. */

rc = _wpSetDefaultView(somSelf, ulView);


Related Methods