Article View: borland.public.cppbuilder.nativeapi
Article #5466Re: XPTheme
From: Remy Lebeau (TeamB)
Date: Thu, 18 Aug 2005 09:16
Date: Thu, 18 Aug 2005 09:16
27 lines
1920 bytes
1920 bytes
"JD" <nospam@nospam.com> wrote in message
news:43044e77$1@newsgroups.borland.com...
> I want to add Theming to a TStringGrid and TInplaceEdit
> decendent where the grid draws it's headers themed and
> the edit draws a themed ellipse, drop down and up/down
> glyph.
Good luck. That would require essentially re-writing all of the
TStringGrid's drawing code from scratch. And believe me, TStringGrid has a
lot of custom drawing going on.
> I know that I need to check if XP and if theming is enabled
> but haven't found any examples of anything to get me started.
Then you aren't looking very hard. There is a whole chapter in MSDN that
shows how drawing code is supposed to take themes into account.
Using Windows XP Visual Styles
http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/userex/cookbook.asp
Look at the "Using Visual Styles with a Custom Control" section.
Gambit
Technical Details
Message-ID:
<430451f3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.inode.at!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4303db08$1@newsgroups.borland.com> <4303e981$1@newsgroups.borland.com> <43044e77$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a90319fa0fd543ae X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4303db08$1@newsgroups.borland.com> <4303e981$1@newsgroups.borland.com> <43044e77$1@newsgroups.borland.com> Subject: Re: XPTheme Date: Thu, 18 Aug 2005 02:16:02 -0700 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <430451f3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1124356595 68.69.17.41 (18 Aug 2005 02:16:35 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.inode.at!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail