Re: Default Font Bolded
"yarp" <lac-3QW3q7+2X3hWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <[email protected]> |
Seems like I ran into an interesting problem. The first lesson is not to use AtlGetDefaultGuiFont anymore. And the second one is to write a new wrapper. Thank you for the links that OldNewThing blog is a real blessing I should visit it more often. Yarp --- In [email protected], "ntufarellich" <ntufarelli@...> wrote: > > Take a look at these: > > http://blogs.msdn.com/oldnewthing/archive/2005/07/07/436435.aspx > > and > > http://msdn.microsoft.com/en-us/library/dd144925(VS.85).aspx > > The documentation of GetStockObject function on MSDN (the second link) says: > > It is not recommended that you employ this method to obtain the current font used by dialogs and windows. Instead, use the SystemParametersInfo function with the SPI_GETNONCLIENTMETRICS parameter to retrieve the current font. SystemParametersInfo will take into account the current theme and provides font information for captions, menus, and message dialogs. > ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wtl/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/wtl/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/