Jump to content

wpGetFattrsFromPsz

From EDM2
Revision as of 01:47, 17 November 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:wpGetFattrsFromPsz}} This method is specific to Version 3, or higher, of the OS/2 operating system. This instance method returns the font attributes from a PresParam string. ==Syntax== _wpGetFattrsFromPsz(somSelf, pszFont, pFattrs) ==Parameters== ;''somSelf'' (WPFontPalette *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPFontPalette. ;''pszFont'' (PSZ) - input :PresParam string. ;''p...")
(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 returns the font attributes from a PresParam string.

Syntax

_wpGetFattrsFromPsz(somSelf, pszFont, pFattrs)

Parameters

somSelf (WPFontPalette *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPFontPalette.
pszFont (PSZ) - input
PresParam string.
pFattrs (PFATTRS) - output
Pointer to the font attribute structure.

Returns

There is no return value for this method.

How to Override

This method is generally not overridden.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPFontPalette *somSelf; /* Pointer to the object on which the method is being invoked. */
PSZ pszFont; /* PresParam string. */
PFATTRS *pFattrs; /* Pointer to the font attribute structure. */

_wpGetFattrsFromPsz(somSelf, pszFont, pFattrs);