🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: XP Theming

#5183
From: Remy Lebeau (TeamB)
Date: Wed, 24 Aug 2005 21:25
21 lines
1751 bytes
"JD" <nospam@nospam.com> wrote in message
news:430ce1b2$1@newsgroups.borland.com...

> I thought you wanted to see what code didn't work.

No, that is not the code I wanted to see.  I wanted to see your original
StringGrid code that started this discussion in the first place.

>           HINSTANCE hComCtl32 = ::LoadLibrary( "ComCtl32.dll" );

Use GetModuleHandle() instead:

    HINSTANCE hComCtl32 = ::GetModuleHandle( "COMCTL32" );

Better yet, why bother checking ComCtl32.dll at all?  You are only using it
to decide whether to check for UxTheme.dll, which you can do without first
checking ComCtl32.dll at all.


Gambit
Technical Details
Message-ID: <430ce62c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <430cb5d9$1@newsgroups.borland.com> <430cc947$1@newsgroups.borland.com> <430cd1e4$1@newsgroups.borland.com> <430cda41$1@newsgroups.borland.com> <430ce1b2$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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <430cb5d9$1@newsgroups.borland.com> <430cc947$1@newsgroups.borland.com> <430cd1e4$1@newsgroups.borland.com> <430cda41$1@newsgroups.borland.com> <430ce1b2$1@newsgroups.borland.com>
Subject: Re: XP Theming
Date: Wed, 24 Aug 2005 14:25:51 -0700
Lines: 23
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: <430ce62c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1124918828 68.69.17.41 (24 Aug 2005 14:27:08 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail