Article View: borland.public.cppbuilder.nativeapi
Article #4868Re: FindFirstFile(), FindNextFile() and TreeView
From: Richard Bradbrook
Date: Sun, 20 Nov 2005 20:51
Date: Sun, 20 Nov 2005 20:51
39 lines
2560 bytes
2560 bytes
Hahaha, how can you say it made no changes if now you've only got 2 errors?!
If that's all you're getting, you don't need sdk - in any case, the .net sdk
wasn't the one I meant.
The Platform SDK would be the one you're after.
Double click on the error you see in the log. It'll take you to those lines
in the uxtheme.h file.
First is the THEMESIZE structure.
Edit it and format it as follows:
typedef enum THEMESIZE
{
TS_MIN, // minimum size
TS_TRUE, // size without stretching
TS_DRAW, // size that theme mgr will use to draw part
}THEMESIZE;
The second is the PROPERTYORIGIN structure.
Edit it and format it as follows:
typedef enum PROPERTYORIGIN
{
PO_STATE, // property was found in the state section
PO_PART, // property was found in the part section
PO_CLASS, // property was found in the class section
PO_GLOBAL, // property was found in [globals] section
PO_NOTFOUND // property was not found
} PROPERTYORIGIN;
Save that file and then recompile your project. It should work ok now.
Don't forget to add the 'ThemeManager' component to your main form btw.
That'll enable proper XP themes in your application and make the others work
properly (once you've also told them to allow themes via the properties - if
not enabled by default anyway).
Technical Details
Message-ID:
<4380e18d@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news-xfer.newsread.com!yellow.newsread.com!netaxs.com!newsread.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<437f21f9@newsgroups.borland.com> <437f41a9@newsgroups.borland.com> <437f4d5e@newsgroups.borland.com> <4380b305$1@newsgroups.borland.com> <4380d2d3$1@newsgroups.borland.com> <4380ddd0@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c9219bd94e2094ee X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Richard Bradbrook" <dont@spamme.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <437f21f9@newsgroups.borland.com> <437f41a9@newsgroups.borland.com> <437f4d5e@newsgroups.borland.com> <4380b305$1@newsgroups.borland.com> <4380d2d3$1@newsgroups.borland.com> <4380ddd0@newsgroups.borland.com> Subject: Re: FindFirstFile(), FindNextFile() and TreeView Date: Sun, 20 Nov 2005 20:51:31 -0000 Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.1830 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 86.136.60.229 Message-ID: <4380e18d@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1132519821 86.136.60.229 (20 Nov 2005 12:50:21 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news-xfer.newsread.com!yellow.newsread.com!netaxs.com!newsread.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail