Article View: borland.public.cppbuilder.nativeapi
Article #4467Re: How to turn off theming to a component
From: Clayton Arends
Date: Sat, 28 Jan 2006 04:12
Date: Sat, 28 Jan 2006 04:12
18 lines
1483 bytes
1483 bytes
You will need to dynamically load the UxTheme.dll and useGetProcAddress to
access SetWindowTheme().
typedef HRESULT STDAPICALLTYPE (*TSetWindowTheme)(
HWND hwnd, LPCWSTR pszSubAppName, LPCWSTR pszSubIdList);
HINSTANCE dll = ::LoadLibrary("UxTheme.dll");
if (dll)
{
TSetWindowTheme setWindowTheme =
(TSetWindowTheme) ::GetProcAddress(dll, "SetWindowTheme");
if (setWindowTheme)
setWindowTheme(ProgressBar->Handle, L"", L"");
::FreeLibrary(dll);
}
HTH,
- Clayton
Technical Details
Message-ID:
<43daee78$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43dacb3f@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fd24d08906db1fc X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Clayton Arends" <nospam_claytonarends@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <43dacb3f@newsgroups.borland.com> Subject: Re: How to turn off theming to a component Date: Fri, 27 Jan 2006 20:12:41 -0800 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 68.186.78.51 Message-ID: <43daee78$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1138421368 68.186.78.51 (27 Jan 2006 20:09:28 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail