Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Fri, 29 Feb 2008 13:15:01 -0800,    group: microsoft.public.platformsdk.shell        back       


OpenThemeData for menu   
Hi!
Anybody knows how to get theme data for menus? OpenThemeData returns NULL 
when I pass "MENU" as pszClassList. For almost all others (buttons, edit 
boxes etc) it works ok. I found a trick in one of posts here for TrayNotify: 
You should first call SetWindowTheme(hwnd, "TrayNotifyHoriz", NULL) and then 
OpenThemeData(hwnd, "TrayNotify"). And it works fine. 
May be the same way is for menus? But what should I pass to SetWindowTheme 
as pszSubAppName?
Thank you.
date: Fri, 29 Feb 2008 13:15:01 -0800   author:   Andrey Gruber Andrey

Re: OpenThemeData for menu   
Andrey Gruber wrote:
> Hi!
> Anybody knows how to get theme data for menus? OpenThemeData returns NULL 
> when I pass "MENU" as pszClassList. For almost all others (buttons, edit 
> boxes etc) it works ok. I found a trick in one of posts here for TrayNotify: 
> You should first call SetWindowTheme(hwnd, "TrayNotifyHoriz", NULL) and then 
> OpenThemeData(hwnd, "TrayNotify"). And it works fine. 
> May be the same way is for menus? But what should I pass to SetWindowTheme 
> as pszSubAppName?

I didn't think there was any theme specific styling for menus.
They appear to be the same on v5 and v6 of the common controls.

-- 
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
date: Mon, 03 Mar 2008 09:33:08 +0000   author:   Dean Earley

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us