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.
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