Re: Default Font Bolded

"yarp" <lac-3QW3q7+2X3hWk0Htik3J/[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
Hi,
thanks, this is very interesting. But I wanted to avoid to create a new font and reuse a default DC font instead.

My question was rather: how do I force a given DC font boldness to normal ?

Yarp

--- In [email protected], "Political" <politicalconfusion@...> wrote:
>
> I've used SPI_GETNONCLIENTMETRICS with SystemParametersInfo() to get a default GUI font in the past.  Something like this:
> 
> NONCLIENTMETRICS ncm;
> ncm.cbSize = sizeof( ncm );
> SystemParametersInfo( SPI_GETNONCLIENTMETRICS, ncm.cbSize, &ncm, 0 );
> ncm.lfCaptionFont.lfWeight = FW_NORMAL;
> HFONT hFont = CreateFontIndirect( &(ncm.lfCaptionFont) );
> 
> 
> This creates non-bold Tahoma in WinXP and Segoe UI in Win7.
> 
> 





------------------------------------

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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.