Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OpenThemeData

285 views
Skip to first unread message

AF

unread,
Mar 26, 2010, 3:45:22 PM3/26/10
to
I would like to recreate the blue gradient fill Windows 7 uses to highlight
the current selection in explorer. I develop using VS 2008 under Windows 7,
I am assuming I will have to open a theme handle via OpenThemeData but am
unsure what theme class to use. The "ThemeExplorer" project at
codeproject.com enumerates all the theme classes and display the associated
rendered effect and non of them gave the gradient explorer uses in Windows
7, any help would be great.

A.


Ivo Beltchev

unread,
Mar 26, 2010, 3:57:09 PM3/26/10
to
You have to do something like SetWindowTheme(hwnd,L"Explorer",NULL).
Look at the bottom of this:
http://msdn.microsoft.com/en-us/library/bb759827(VS.85).aspx

Jon Potter

unread,
Mar 26, 2010, 5:18:36 PM3/26/10
to
To get this theme via OpenThemeData, use e.g. OpenThemeData(hWnd,
L"Explorer::ListView").

"AF" <af...@ntlworld.com> wrote in message
news:m98rn.25578$7o6....@newsfe27.ams2...

Steve Thresher

unread,
Apr 28, 2010, 8:48:01 AM4/28/10
to
Thankyou Jon!

Do you know of any good references for using the them API. I've tried to use
it a few times and it's always been a struggle to find the right combination
of functions/parts/states.

Jon Potter

unread,
Apr 28, 2010, 6:40:48 PM4/28/10
to
"Steve Thresher" <SteveT...@discussions.microsoft.com> wrote in message
news:26179E08-BEC6-4EF8...@microsoft.com...

Google + these newsgroups are your best bet. Really the Theme API
documentation is absolutely shocking; it is one of the worst documented APIs
in Windows that I know of. The fact that this hasn't improved in almost 10
years since XP was released is something Microsoft should be truly ashamed
of.

0 new messages