🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: XP Theming

#5428
From: JD
Date: Wed, 24 Aug 2005 20:00
24 lines
1836 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>
> [...] You are trying to load a theme element that does not
> actually exist for TStringGrid.

This makes sense. However, MSDN provided an example where
"ToolButton" was passed into OpenThemeData to be used for
the 'cells' of some sort of calander object. I don't believe
that OpenThemeData is type checking the HWND parameter and
if it is, then why would it accept the handle from AllocateHWnd?

>> but I get the same result as when I use the grid's Handle.

>Then you are not using it properly to begin with.  Please show your actual
>code.

That's all gone now. However, I used GetParentForm to get the
handle of the main form in one case. In another, I used the
Owner to cast to the main form type to get the handle and
finally I used PostMessage to delay the code until Application->MainForm
was valid. All handles failed when used with OpenThemeData.

~ JD
Technical Details
Message-ID: <430cd1e4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <430cb5d9$1@newsgroups.borland.com> <430cc947$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,155e299ff335af68
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 Theming
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 64.12.117.6     
X-Forwarded-For: 172.175.236.167
References: <430cb5d9$1@newsgroups.borland.com> <430cc947$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <430cd1e4$1@newsgroups.borland.com>
Date: 24 Aug 2005 13:00:36 -0700
X-Trace: newsgroups.borland.com 1124913636 207.105.83.66 (24 Aug 2005 13:00:36 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail