The information in this article applies to:
SYMPTOMSAfter you change the font in an edit control in Windows 95, the left and right margins are unusually large. CAUSEWhen the edit control receives the WM_SETFONT message, it calculates the left and right margins based on the average character width of the new font. The control does not do this when it is created. This results in the margins changing drastically when the font is changed. RESOLUTIONGet the margins of the edit control before sending the WM_SETFONT message, and then set the margins back to their original sizes. The following code fragment demonstrates how to do this:
STATUSThis problem has been fixed in Windows 95 OSR2 and later versions. Additional query words:
Keywords : kbcode kbCtrl kbEditCtrl kbGrpUser kbWinOS95bug kbWinOS95fix |
Last Reviewed: December 7, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |