Jump to content

wpSetFldrFont

From EDM2

This instance method is called to allow the folder to change its current font.

Syntax

_wpSetFldrFont(somSelf, pszFont, ulView)

Parameters

somSelf (WPFolder *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPFolder.
pszFont (PSZ) - input
Pointer to a buffer containing the font name.
If **pszFont** is **NULL**, the font presentation parameter is set back to the default font. If a pointer to a NULL string is passed, the font presentation parameter will be set to the currently defined font.
The maximum font string size is set to **PPFONTSTRSIZE**.
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 change the current font for a view.

Remarks

The font name should be a valid presentation parameter string.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPFolder *somSelf; /* Pointer to the object on which the method is being invoked. */
PSZ pszFont; /* Pointer to a buffer containing the font name. */
ULONG ulView; /* Flag indicating an object's open view. */
BOOL rc; /* Success indicator. */

rc = _wpSetFldrFont(somSelf, pszFont, ulView);