please dont rip this site Prev Next

GetTextCharsetInfo info  Overview  Group

The GetTextCharsetInfo function obtains information about the character set of the font that is currently selected into a specified device context.

UINT GetTextCharsetInfo(

    HDC hdc,

// handle to device context

    LPFONTSIGNATURE lpSig,

// pointer to structure to receive Unicode and code page data

    DWORD dwFlags

// reserved; must be zero

   );

Parameters

hdc
Handle to a device context. The function obtains information about the font that is selected into this device context.
lpSig
Pointer to a FONTSIGNATURE data structure that receives font-signature information.

If a TrueType font is currently selected into the device context, the FONTSIGNATURE structure receives information that identifies the codepage and Unicode subranges for which the font provides glyphs.

If a font other than TrueType is currently selected into the device context, the FONTSIGNATURE structure receives zeroes. In this case, use the TranslateCharsetInfo function to obtain generic font-signature information for the character set.

The lpSig parameter can be NULL if you do not need the FONTSIGNATURE information. In this case, you can also call the GetTextCharset function, which is equivalent to calling GetTextCharsetInfo with lpSig set to NULL.

dwFlags
This parameter is reserved for future use. It must be set to zero.

Return Values

If the function succeeds, the return value identifies the character set of the font currently selected into the specified device context. The following character-set identifiers are defined:
ANSI_CHARSET

CHINESEBIG5_CHARSET

DEFAULT_CHARSET

GB2312_CHARSET

HANGEUL_CHARSET

OEM_CHARSET

SHIFTJIS_CHARSET

SYMBOL_CHARSET

Windows 95 only:
ARABIC_CHARSET

BALTIC_CHARSET

EASTEUROPE_CHARSET

GREEK_CHARSET

HEBREW_CHARSET

JOHAB_CHARSET

MAC_CHARSET

RUSSIAN_CHARSET

THAI_CHARSET

TURKISH_CHARSET

If the function fails, the return value is DEFAULT_CHARSET.

See Also

FONTSIGNATURE, GetTextCharset, TranslateCharsetInfo


file: /Techref/os/win/api/win32/func/src/f41.htm, 3KB, , updated: 2000/4/7 11:19, local time: 2024/12/26 10:54,
TOP NEW HELP FIND: 
3.21.244.240:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://ecomorder.com/techref/os/win/api/win32/func/src/f41.htm"> GetTextCharsetInfo</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to ecomorder.com!

 

Welcome to ecomorder.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .