🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5268

Re: XP Theme Font Color

#5268
From: JD
Date: Thu, 22 Sep 2005 21:57
23 lines
1688 bytes
"Jonathan Benedicto" <incorrect@no.server> wrote:
>
> [...] in particular this line:
>
> m_pbtnOk->SetFont(GetFont());

That just sets the control's font. I'm trying to find a way to
change the font that a particular theme class will use when it
paint's the control.

To be clear, all theme drawing functions require an HDC but
not all classes will use the font info from that HDC. Now, I
can open one class and draw the background and then open a
different class (one that will use what's provided by the HDC)
to draw the text but some classes are not compatible with
other's (messes up the background when the text is drawn).

I've observed Window's changing the font as described above
but I have no clue how to get to it or even if Windows has
that exposed for me to have at it and I can find nothing on it.

~ JD
Technical Details
Message-ID: <433328e5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4332c7c1$1@newsgroups.borland.com> <4332e22c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c9a8347913c694ac
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: XP Theme Font Color
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 64.12.116.131     
X-Forwarded-For: 172.171.122.2
References: <4332c7c1$1@newsgroups.borland.com> <4332e22c$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <433328e5$1@newsgroups.borland.com>
Date: 22 Sep 2005 14:57:57 -0700
X-Trace: newsgroups.borland.com 1127426277 207.105.83.66 (22 Sep 2005 14:57:57 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail