Questions tagged [visual-styles]

Microsoft visual styles is a user interface customization (themes) technology introduced in Windows XP and substantially expanded in Windows Vista to cover common Windows controls. Since Windows 8 visual styles can't be turned off.

Useful resources:

75 questions
4
votes
1 answer

Visual styles in Windows 8

I have the following C++ code (native desktop app) that uses Microsoft's Visual Styles API to draw a close button. RECT r = DetermineButtonRect(); HANDLE h = OpenThemeData(Handle, L"WINDOW"); DrawThemeBackground(h, hdc, WP_CLOSEBUTTON, CBS_NORMAL,…
Josh Kelley
  • 56,064
  • 19
  • 146
  • 246
3
votes
5 answers

Transparent radio button control with themes using Win32

I am trying to make a radio button control with a transparent background using only Win32 when themes are enabled. The reason for doing this is to allow a radio button to be placed over an image and have the image show (rather than the grey default…
David Hall
  • 32,624
  • 10
  • 90
  • 127
3
votes
1 answer

Visual Style for Windows Explorer hover and selection

The last three versions of Windows have all had translucent highlight and hover effects in Windows Explorer listview: Using a theme explorer I see that the ListItem has no state that matches what i see in Windows: Is there…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
3
votes
2 answers

How do you set a custom theme for a .NET application?

Much as the title says, I am wondering how to style a program like Photoshop CS4 or Autodesk Maya 2011. These programs are styled to where the UI looks completely custom. Right now I am using C# to program, but I can easily switch to C++ and WinAPI…
Thomas Havlik
  • 1,378
  • 4
  • 12
  • 20
3
votes
0 answers

WinForms - Draw large-DPI checkbox / radio button / etc with visual styles (Aero glass look)

I'm trying to find some way to draw large-DPI UI glyphs in WinForms with visual styles. For example, if I have the DPI set to 100% in windows, no matter how I try to draw a styled radio button, it ends up looking like this: If I increase the DPI to…
Duke Nukem
  • 357
  • 2
  • 11
3
votes
4 answers

C++/Win32 : XP Visual Styles - no controls are showing up?

Okay, so i'm pretty new to C++ & the Windows API and i'm just writing a small application. I wanted my application to make use of visual styles in both XP, Vista and Windows 7 so I added this line to the top of my code: #pragma…
user353297
  • 736
  • 1
  • 7
  • 13
3
votes
2 answers

Dialog box as a tab page has different background color from a tab control it belongs

I am creating a dialog with a tab control. Each tab should show different set of controls, so I have created child dialog boxes in resource editor to behave like pages. I have used instructions from this post to do this. In resource editor I made…
AlwaysLearningNewStuff
  • 2,939
  • 3
  • 31
  • 84
3
votes
1 answer

TextRenderer. How to render text multiline with endellipsis?

How i can render text like this(simple listview)? Trying the code like this renders no ellipsis: TextRenderer.DrawText(_listGraphics, anItem.Text, GetItemFont(anItem), textRec, …
DimDim
  • 148
  • 1
  • 10
3
votes
1 answer

Why doesn't DrawThemeText work properly?

I'm trying to draw themed text on the window. However, instead of themed font, I always get something like bold MS Sans Serif w/o antialiasing. Why is it so? Edit: After applying mentioned changes, the code looks like this: INITCOMMONCONTROLSEX…
Spook
  • 25,318
  • 18
  • 90
  • 167
2
votes
1 answer

WinForm Button on a black background appears invisible with Visual Styles disabled

i drop a Button on a black Form. The button appears fine at design time: The button also appears fine at runtime (with Visual Styles enabled): But the button draws completely wrong with visual styles disabled: How to fix? Bonus Chatter When…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
2
votes
2 answers

Visual Studio 2010: How embed manifest with default settings

In Visual Studio 2010, i want it to embed a manifest with default settings: Unfortunately the embedded manifest does not include a dependency on version 6 of the common controls library:
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
2
votes
0 answers

Turning Explorer Visual Style on and off does not restore ListView look

Because I don't like the way the ListView looks with the Explorer theme combined with grid-lines in report view I want to turn the theme off when grid-lines are on. The problem is that once the Explorer theme has been applied it is not possible to…
Anders
  • 97,548
  • 12
  • 110
  • 164
2
votes
1 answer

winforms visual styles on mono

How to enable winforms visual styles in mono( probably running in fedora or ubuntu gnome) or is it a good idea to just use GTK#? The thing is I dont want to leave visual studio and use monodevelop for this. Thanks...
Epok
  • 111
  • 1
  • 5
2
votes
0 answers

Draw themed combobox on windows

I try to emulate the look of a themed noneditable combobox (CBS_DROPDOWNLIST) using DrawThemeBackground. I supply the part CP_READONLY, which apparently draws the background of a themed combobox: DrawThemeBackground(theme, dc, CP_READONLY,…
phimuemue
  • 34,669
  • 9
  • 84
  • 115
2
votes
1 answer

Visual Studio upgrade from 2005 to 2015, C++ GUI keeps XP theme not system theme

I recently migrated a project from VS2005 to VS2015. In doing so, my project now refuses to use the system look and feel and uses the windows 98 look and feel. When built in 2005 it does use the system appearance. The .rc file that describes the…