Hi Sean,
I tried WM_GETFONT on my large font, and applied it to an ahk GUI
control
ON XP, and it did the same
thing that happens on the problem I am reporting, it made the font
small and bold. Just what happens cross process using CreateFont
and applying it to External Windows controls.
Now my test above does show that if you get the font from the same
process, you can apply it other controls in that same process.
So the challange is to apply fonts cross process. Or see some of my other
ideas listed above.
Try this from svi on this other thread:
http://www.autohotkey.com/forum/viewtop ... 579#265579
At first, I thought it was a chm hh.exe etc problem, but it is pandemic
on external controls in XP. W98, no problem. Vista, I wish someone
could test that for me. I don't have one. Just a W98, and 2 XPs which
both exihibit the same cross process font problem. Both XP have all the
update for XPSP2. One is XP Professional Version 2002 Service Pack 2,
and the other is XP Home Edition Version 2002 Service Pack 2
Think COM could help ?
Code:
F9::
MouseGetPos, , , win, control
hFont := DllCall("CreateFont", int,37 ; int nHeight
, int,0 ; int nWidth
, int,0 ; int nEscapement
, int,0 ; int nOrientation
, int,646 ; int fnWeight
, int,0 ; DWORD fdwItalic
, uint,0 ; DWORD fdwUnderline
, uint,True ; DWORD fdwStrikeOut
, uint,0 ; DWORD fdwCharSet
, uint,0 ; DWORD fdwOutPutPrecision
, uint,0 ; DWORD fdwClipPrecision
, uint,0 ; DWORD fdwQuality
, uint,0 ; DWORD fdwPitchAndFamily
, str, "Arial") ; LPCTSTR lpszFace
SendMessage 0x30, hfont, True, %control%, ahk_id %win%
Return
Thanks