Jump to content

wpSetSortAttribAvailable

From EDM2
Revision as of 02:58, 17 November 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:wpSetSortAttribAvailable}} This method is specific to version 3, or higher, of the OS/2 operating system. This instance method sets the availability of sort attributes for the current folder. ==Syntax== _wpSetSortAttribAvailable(somSelf, index, Available) ==Parameters== ;''somSelf'' (WPFolder *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPFolder. ;''index'' (ULONG) - input :Column in...")
(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 availability of sort attributes for the current folder.

Syntax

_wpSetSortAttribAvailable(somSelf, index, Available)

Parameters

somSelf (WPFolder *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPFolder.
index (ULONG) - input
Column index for the current details view.
Available (BOOL) - input
Flag indicating whether to show or hide the sort attributes.
  • **TRUE** Show sort attributes.
  • **FALSE** Hide sort attributes.

Returns

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

How to Override

This method is generally not overridden.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPFolder *somSelf; /* Pointer to the object on which the method is being invoked. */
ULONG index; /* Column index for the current details view. */
BOOL Available; /* Flag indicating whether to show or hide the sort attributes. */
BOOL rc; /* Success indicator. */

rc = _wpSetSortAttribAvailable(somSelf, index,
        Available);

Related Methods