[comp.windows.ms.programmer] Fonts

PE@fek.su.se (AHL) (11/08/90)

How can I use the SYSTEM_FIXED_FONT in a control (listbox etc.).
I have tried to use GetStockObject() but it won't work.
Does anybody know the answer to this question ???

spolsky-joel@cs.yale.edu (Joel Spolsky) (11/08/90)

In article <0964CB7BF11F400693@njord.fek.su.se> PE@fek.su.se (AHL) writes:
>How can I use the SYSTEM_FIXED_FONT in a control (listbox etc.).
>I have tried to use GetStockObject() but it won't work.
>Does anybody know the answer to this question ???

Send the control a WM_SETFONT message.

Joel Spolsky
spolsky@cs.yale.edu                                     Silence = Death