|
From: Bruno B. <bbe...@cl...> - 2001-08-04 09:14:37
|
Hello,
You can change the window font by this way:
char font[]="Verdana"; /* the font you want */
...
hWin=CreateWindowEx(...);
hFont=CreateFont(12,0,0,0,400,0,0,0, DEFAULT_CHARSET,0,0,0,
DEFAULT_PITCH,font);
invoke SendMessage,hWin,WM_SETFONT,hFont, 1;
...
* 12 is the logical height of font
* and the following 0 is the logical average character width. If this value is
zero, the font mapper chooses a "closest match" value. The "closest match" value
is determined by comparing the absolute values of the difference between the
current device's aspect ratio and the digitized aspect ratio of available fonts.
If you want to know more about the CreateFont function I can send you more
info.
Bruno Berteau
http://perso.club-internet.fr/bberteau/
|