Jump to content

GpiQueryCp: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Created page with "Returns the currently selected graphics code page. ==Syntax== <code> #define INCL_GPILCIDS Or use INCL_GPI, INCL_PM,: #include <os2.h> HPS hps; /* Pres..."
 
No edit summary
Line 20: Line 20:
The code page identity returned is the one that is set by [[GpiSetCp]] (or defaulted when the presentation space is first created). This is the code page of the default font, not the currently-selected font, found from [[GpiQueryFontMetrics]].
The code page identity returned is the one that is set by [[GpiSetCp]] (or defaulted when the presentation space is first created). This is the code page of the default font, not the currently-selected font, found from [[GpiQueryFontMetrics]].


[[Category:Gpi]]
[[Category:GPI]]

Revision as of 00:09, 18 November 2016

Returns the currently selected graphics code page.

Syntax

#define INCL_GPILCIDS /* Or use INCL_GPI, INCL_PM, */
#include <os2.h>

HPS      hps;         /* Presentation-space handle */
ULONG    ulCodePage;  /* Code page */

ulCodePage = GpiQueryCp(hps);

Parameter

hps (HPS) - input
Presentation-space handle.
ulCodePage (ULONG) - returns Code page.
GPI_ERROR - Error
Otherwise Code page.

The code page identity returned is the one that is set by GpiSetCp (or defaulted when the presentation space is first created). This is the code page of the default font, not the currently-selected font, found from GpiQueryFontMetrics.