Jump to content

wpSetFldrSort

From EDM2

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

This instance method sets the sort attributes on the folder window and saves those values in the instance data.

Syntax

_wpSetFldrSort(somSelf, pSortRecord, ulView, ulType)

Parameters

somSelf (WPFolder *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPFolder.
pSortRecord (PVOID) - input
Pointer to the SORTFASTINFO structure containing sort record information.
If this value is **NULL**, the sort attributes are reset to the default sort values.
ulView (ULONG) - input
Reserved - set to 0.
ulType (ULONG) - input
Reserved - set to 0.

Returns

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

How to Override

This method should not be overridden.

Usage

    • Note:** This method only rearranges a folder open in icon view.

Remarks

This method refreshes all open icon, tree, and details views of the folder with selected sort attributes.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPFolder *somSelf; /* Pointer to the object on which the method is being invoked. */
PVOID pSortRecord; /* Pointer to the SORTFASTINFO structure containing sort record information. */
ULONG ulView; /* Reserved - set to 0. */
ULONG ulType; /* Reserved - set to 0. */
BOOL rc; /* Success indicator. */

rc = _wpSetFldrSort(somSelf, pSortRecord,
          ulView, ulType);

Related Methods