Jump to content

WpSetFldrDetailsClass: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:wpSetFldrDetailsClass}} This instance method is called to set the class for which details in the folder will be displayed. ==Syntax== _wpSetFldrDetailsClass(somSelf, Class) ==Parameters== ;''somSelf'' (WPFolder *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPFolder. ;''Class'' (M_WPObject *) - input :Pointer to the class object for which details are to be displayed. ==Returns== ;''rc'' ([..."
 
(No difference)

Latest revision as of 22:48, 24 November 2025

This instance method is called to set the class for which details in the folder will be displayed.

Syntax

_wpSetFldrDetailsClass(somSelf, Class)

Parameters

somSelf (WPFolder *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPFolder.
Class (M_WPObject *) - input
Pointer to the class object for which details are to be displayed.

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 current class of details to be displayed.

Remarks

Because folders can contain objects of different classes which can have different details, it is often necessary for the user to specify which class of details is to be displayed. The value set by this method is not used until a details view of the folder is opened. The wpQueryFldrDetailsClass method can be called to determine the class of details currently set. All column visibility states are reset by this method.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPFolder *somSelf; /* Pointer to the object on which the method is being invoked. */
M_WPObject *Class; /* Pointer to the class object for which details are to be displayed. */
BOOL rc; /* Success indicator. */

rc = _wpSetFldrDetailsClass(somSelf, Class);

Related Methods