HOWTO: Display IE Unicode Language Add-ons Under Windows 95

Last reviewed: January 9, 1998
Article ID: Q179143
The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK) on the following platform: - Windows 95

SUMMARY

Since the release of Internet Explorer language add-ons (for example, Japanese, Chinese, and Korean), it has been possible to display these Far East characters on English Windows 95. This article demonstrates how you can also display these Far East characters in your applications.

MORE INFORMATION

The fonts installed by Internet Explorer add-ons are Unicode fonts. If the system is already installed with the proper Internet Explorer add-ons, applications can use these Unicode fonts to display the Far East language characters.

To do this, use the TextOutW() function to display Unicode characters. Following is an example for Simplified Chinese characters:

   strcpy(lf.lfFaceName, "KaiTi_GB2312");
   lf.lfCharSet = GB2312_CHARSET;
   lf.lfHeight = 16;
   hfont = CreateFontIndirect(&lf);
   TextOutW(hdc, 10,10, UStr , 2);

If you need to use the Traditional Chinese character set in your application, the font and character set name and the code point should be changed accordingly (GB2312_CHARSET -> CHINESEBIG5_CHARSET). Make sure you select the correct font into your DC when wm_paint time.
Platform          : winnt
Issue type        : kbinfo


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 9, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.