Jump to content

wpQueryFldrFont

From EDM2

The wpQueryFldrFont instance method is called to allow the folder to query its current font.

Syntax

_wpQueryFldrFont(somSelf, ulView)

Parameters

somSelf (WPFolder *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPFolder.
ulView (ULONG) - input
Flag indicating the view to query.
  • **OPEN_CONTENTS** Open contents view.
  • **OPEN_DETAILS** Open details view.
  • **OPEN_TREE** Open tree view.

Returns

pFontString (PSZ) - returns
Pointer to font string for specified open view.
The font string is in the format of point size followed by a period followed by the face name.
For example, "10.Helvetica" (a presentation parameter string).
The maximum font string size is set to **PPFONTSTRSIZE**.

How to Override

This method is generally not overridden.

Usage

This method can be called at any time in order to determine the current font for a view.

Remarks

There is only one font for each view. Concurrent views will all have the same font.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPFolder *somSelf; /* Pointer to the object on which the method is being invoked. */
ULONG ulView; /* Flag indicating the view to query. */
PSZ pFontString; /* Pointer to font string for specified open view. */

pFontString = _wpQueryFldrFont(somSelf, ulView);

Related Methods