Microsoft KB Archive/256158

= Text may appear truncated in MFC applications that are localized for Japanese Windows 2000 =

Article ID: 256158

Article Last Modified on 8/7/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition
 * Microsoft Visual C++ 6.0 Enterprise Edition
 * Microsoft Visual C++ 6.0 Professional Edition
 * Microsoft Visual C++ 6.0 Standard Edition
 * Microsoft Foundation Class Library 4.2

-



This article was previously published under Q256158



SYMPTOMS
When you display a property page that is built with the Microsoft Foundation Classes (MFC) on a computer that is running Windows 2000, the text may appear truncated. This problem is specific to MFC applications that are localized for Japanese Windows 2000.



CAUSE
This problem is caused by a bug in the MFC framework. The font for an MFC property page is set to the font of the associated property sheet. The font for the property sheet is retrieved by the AfxGetPropSheetFont function, which is an internal MFC function that can be found in the \Mfc\Src\Ccdata.cpp file. The font lookup code in this function makes an incorrect assumption about the font from the property sheet resource that is located in the Comctl32.dll file.



RESOLUTION
The internal AfxGetPropSheetFont function now contains code to select the correct property page font. This fix is already included in the Mfc42.dll and Mfc42u.dll files that are shipped with Windows 2000. Only applications that are statically linked to the MFC libraries and localized for Japanese platforms are affected.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in the latest service pack for Visual Studio 6.0.

For additional information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That a Visual Studio Service Pack Is Installed

To download the latest Visual Studio service pack, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/vstudio/Aa718353.aspx

Additional query words: sp4 wizard localization japan

Keywords: kbtshoot kbbug kbdlg kbfix kbgdi kbvc600fix kbvs600sp4fix kbvs600sp5fix KB256158

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.