seems that fonts in dialog boxes look different in win9x and win XP. Normally I set the font size in the resource file (FONT 8,"MS Sans Serif") which looks good in win9x but looks too "small" in windows XP. My questions are:

1. why does same font look different in win XP?
2. Is there a simple method to change font size of all controls dynamically (possibly in WM_INITDIALOG handle code), without going throu a loop to send WM_SETFONT to all controls.

Thanks for replies

Posted on 2002-07-15 08:07:56 by japheth

1) I never noticed that problem... can you please post a screenshot?

2) IIRC, NaN posted a Macro for this a while ago. But basically, it used WM_SETFONT as well.
I always use GetStockObject with DEFAULT_GUI_FONT.
Dunno if there is a way like "ChangeAllChildFonts, hWnd, hFont" :/

Posted on 2002-07-15 08:20:15 by bazik

go there download the lib. it has a nice setfont function. all you have to do is sendmessage the new font to your window or any controls.
Posted on 2002-07-15 12:13:37 by Qages
bAZik thanks for your reply. After realizing my problem isn't a common one I checked windows settings and found "Big Fonts"? ("grosse Schriftarten") in display settings of Win98. :stupid:
Posted on 2002-07-16 00:00:26 by japheth