wpSetFldrAttr
Appearance
This instance method is called to allow the folder to change its current view attributes.
Syntax
_wpSetFldrAttr(somSelf, Attr, ulView)
Parameters
- somSelf (WPFolder *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPFolder.
- Attr (ULONG) - input
- Flag indicating the object's attributes.
- These are the **CV_*** attributes defined by the Container Control Window. See **CNRINFO** for a detailed description.
- ulView (ULONG) - input
- Flag indicating an object's open view.
- **OPEN_CONTENTS** Open contents view.
- **OPEN_DETAILS** Open details view.
- **OPEN_TREE** Open tree view.
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 set the view attributes.
Remarks
The flags should be valid for the specified view. For example, **CV_TREE** should not be specified for the details view.
Example Code
#define INCL_WINWORKPLACE #include <os2.h> WPFolder *somSelf; /* Pointer to the object on which the method is being invoked. */ ULONG Attr; /* Flag indicating the object's attributes. */ ULONG ulView; /* Flag indicating an object's open view. */ BOOL rc; /* Success indicator. */ rc = _wpSetFldrAttr(somSelf, Attr, ulView);