Questions tagged [uxtheme]
35 questions
2
votes
1 answer
MFC colored button with native Windows 7 appearance
I am using MFC to create a dialog project and trying to impart color to the buttons.
I came to know that the only way you can do is to make the button owner draw. OnCtlColor() does not work for buttons.
I am able to color the button overriding…

user1624807
- 271
- 1
- 5
- 20
1
vote
1 answer
System menu of Win32 dialog uses classic (unthemed) style and acts weird
I'm opening a dialog with DialogBoxW and for whatever reason, its system menu (the titlebar menu) uses the classic theme (unthemed) style and acts weird. The menu items in it only actually perform the actions half the time, and the rest of the time,…

aubymori
- 31
- 1
1
vote
0 answers
View changes to a particular Windows API header file across builds?
vsstyle.h and vssym32.h are the sources of truth for some theme-related information on Windows. Specifically, they include IDs of states and parts of Win32 controls, which can be themed via.msstyles files.
These header files are packaged with Visual…

L. Berger
- 266
- 2
- 15
1
vote
1 answer
Can't import uxtheme library
I want to import uxtheme to my c program and use some variable types that are in uxtheme.h library.
When I use this and compile my project, my computer shows me some unreasonable error. Like this:
unknown type name 'DTTOPTS'
But I am sure that…

Tony
- 51
- 7
1
vote
1 answer
Office COM add-in, dialogs don't have the luna/aero theme (they look like Windows 98 classic look)
I have an addin for Office 2007 which adds a toolbar with some buttons and handlers for their OnClick events. When the user clicks on the buttons, some dialogs show. But those dialogs have the dated Windows 98 look and feel with rectangular buttons,…

sashoalm
- 75,001
- 122
- 434
- 781
1
vote
2 answers
Why does OpenThemeData(pParent, L"TEXTSTYLE") fail on XP?
I'm using the theme library to draw some text which works absolutely fine on Windows Vista - however, on Windows XP the returned HTHEME is NULL. This is the code I'm using:
HTHEME hTheme = ::OpenThemeData(pParent, L"TEXTSTYLE");
hTheme is valid on…

Mark Ingram
- 71,849
- 51
- 176
- 230
0
votes
0 answers
What should be the structure of ini files to create an .rmskin package from multiple software used
On my windows 10 pc I utilize ux theme patcher, startallback, startisback, 7tsp with ivon an shell themes, msstyles themes, rainmeter, mnmIUI, and JaxCore all together simultaneously to create high personalized 32 layers and interactive desktop…

Jeff Nail
- 1
- 1
0
votes
0 answers
Do we need to call InitCommonControls/InitCommonControlsEx before drawing OS-styled controls with DrawThemeBackground?
I am working on a legacy ActiveX control that implements custom drawing of elementary Windows controls like combo button and check box. If the Windows visual styles are available, these controls are drawn with the DrawThemeBackground function like…

TecMan
- 2,743
- 2
- 30
- 64
0
votes
0 answers
How to theme a button without glitching
I've been trying to theme a button in a Windows API application using C++.
I want to make the button label red at all times.
Currently I get only a red label until I move the window, after that I get a button with a red label as wanted. Sorry I'm…

Chuck
- 192
- 2
- 11
0
votes
1 answer
Can you turn off visual styles/theming for just a single windows control?
My Windows Forms application uses the following standard line of code so that visual styles (theming) is enabled for the entire application...
Application.EnableVisualStyles();
...which works just fine, all the controls have a themed appearance…

Phil Wright
- 22,580
- 14
- 83
- 137
0
votes
0 answers
Color of SYSLINK controls in themed application
I need to know what the actual color of the Windows SYSLINK controls is, because I need to draw some other elements that should have exactly that same color.
For the moment I use GetSysColor(COLOR_HOTLIGHT) which is the correct color, but is this…

Jabberwocky
- 48,281
- 17
- 65
- 115
0
votes
0 answers
Change the color of selected or selected but not active listview row when using uxtheme theough winapi
im on Win10 and want to change the colors used when drawing a ListView control using uxtheme API.
But when drawing a ListView ListItem (LVP_LISTITEM) background through DrawThemeBackgroundEx it always gets drawn in this explorer like light blue when…

acj
- 73
- 1
- 9
0
votes
0 answers
Are all BP_CHECKBOX states guaranteed to have the same size, and if not, how should I handle the size differences when drawing and hit-testing?
My custom Table control draws its own checkboxes and handles its own checkbox events. Right now when I compute the size of a themed checkbox (with GetThemePartSize()) I make sure all states are the same size, panicking if one is different. Checking…

andlabs
- 11,290
- 1
- 31
- 52
0
votes
1 answer
Disable themed Window Border
In Windows XP's CMD, the Luna border isn't applied to it. alt text http://wedowebstuff.info/uploads/1272861285CMDNotThemed%5D.png
Is it possible to do it in a similar way in Visual C# Winforms, for an application? I just wonder how it's done, of…

Jimmie Lin
- 2,205
- 2
- 23
- 35
0
votes
1 answer
TBitBtn with proper theming?
If you take a look at a standard TButton on Windows 7 and above, hovering the mouse over the button will produce a subtle fade in effect, while taking the cursor away will make the hot face of the button fade out quickly.
If you check the same with…

Steve
- 2,510
- 4
- 34
- 53