Jump to content

wpSetFldrSortClass

From EDM2
Revision as of 02:22, 25 November 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:wpSetFldrSortClass}} This method is specific to version 3, or higher, of the OS/2 operating system. This instance method sets the sort class for the given folder. ==Syntax== _wpSetFldrSortClass(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 sort class object. ==Returns== ;''rc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This method is specific to version 3, or higher, of the OS/2 operating system.

This instance method sets the sort class for the given folder.

Syntax

_wpSetFldrSortClass(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 sort class object.

Returns

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

How to Override

This method is generally not overridden.

Remarks

The **sort class** determines which class details can be used as candidates for the default or current sort field for a given folder (displayed in the sort conditional cascade submenu on the folder's context menu) as well as on the **Sort Settings** page of the object. The default sort class for all folders is WPFileSystem.

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 sort class object. */
BOOL rc; /* Success indicator. */

rc = _wpSetFldrSortClass(somSelf, Class);

Related Methods