Article View: borland.public.cppbuilder.nativeapi
Article #11651Re: Update commctrl.h
From: eric67
Date: Tue, 27 Jan 2004 21:06
Date: Tue, 27 Jan 2004 21:06
36 lines
2315 bytes
2315 bytes
> Besides, to enable theming support, you don't really need to change your > code to begin with. Just include a manifest file with your app and XP will > automatically apply the newer ComCtrls library to your executable when it is > executed, and it will enable theme displays for you. I'd already added a manifest to my app. Today I was asked to convert a TListView component into a grouped TListView (XP feature). Messages and structures required to do this are contained into Microsoft's new commctrl.h (one for all: LVGROUP). I included the new commctrl and sent the messages to listview->Handle and some stuff to perform os version check. It works. My doubt was that this works but some remote component in some remote form doesn't. > Of course, you have to > be careful with doing that if you are using the VCL, since the VCL in BCB > does not support XP drawing rules at all, thus all of the custom-drawn > components will not work correctly when themes are enabled. What do you mean exactly? Can you provide an example? > In any case, there are better ways to approach this issue. Look at Theme > Manager from http://www.delphi-gems.com/ThemeManager.php, for example. It > already does exactly what you are asking for, as well as addresses/fixes > many of the known VCL issues with XP themes. I will take a look to thememanager tomorrow. Thank you
Technical Details
Message-ID:
<4016d25b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4016b247@newsgroups.borland.com> <4016bb79$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,25665ea65a4f94b0 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-27 13:10:36 PST From: "eric67" <myfantasy@libero.it> Newsgroups: borland.public.cppbuilder.nativeapi References: <4016b247@newsgroups.borland.com> <4016bb79$1@newsgroups.borland.com> Subject: Re: Update commctrl.h Date: Tue, 27 Jan 2004 22:06:45 +0100 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 217.56.76.254 Message-ID: <4016d25b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1075237467 217.56.76.254 (27 Jan 2004 13:04:27 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail