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
1
vote
1 answer

Windows Form Visual Style under Windows 8

I have a windows form application, and I call Application.EnableVisualStyles() in the Main(), and under windows 7, A button looks like this: But under Windows 8, the same button looks like this: Is there a way to make the application visual style…
Qstonr
  • 815
  • 1
  • 9
  • 11
1
vote
1 answer

Why visual style is disabled in CDHtmlDialog

I've created an MFC html dialog based application the dialog inherits from CDHtmlDialog, all buttons on the html has classic style not the visual style, why is that?? how can i change this behaviour??? the visual style is enabled on other dialogs,…
ahmedsafan86
  • 1,776
  • 1
  • 26
  • 49
1
vote
1 answer

VB.NET Control Layout Different when EnableVisualStyles

My current WinForms project needs to launch from Sub Main(); in order to do this, one must un-check the 'Enable Application Framework' option in the Application tab of 'My Project'. The Sub Main that I have looks like…
zax0978
  • 58
  • 8
1
vote
0 answers

In C# WinForm app, How to paint/draw child form close button

How to paint/draw a child form's close button (not MDI Form close button). MDI form's close button cand be draw by System.Windows.Forms.VisualStyles.VisualStyleElement.Window.CloseButton.Normal but how to draw child form's close button as seen in…
Haider Ali Wajihi
  • 2,756
  • 7
  • 51
  • 82
1
vote
1 answer

different visual style for xp theme compared to windows 7?

I have developed an application in visual studio 2010 (on a x86 win7 machine) and the GUI displays as designed when ran on a windows 7 machine. However, when on xp (using ANY theme) it loses all display functionality! Colours are wrong, buttons…
iajs
  • 167
  • 4
  • 14
1
vote
2 answers

Win32 Visual Styles backwards compatibility?

When I embed the Visual Styles manifest in my program like this: // Embed visual style XML manifest #pragma comment(linker, \ "\"/manifestdependency:type='Win32'" \ " …
Brandon Miller
  • 2,247
  • 8
  • 36
  • 54
1
vote
1 answer

Disabling visual styles for ToolStripDropDownMenu

I'm trying to prevent MenuStrip control to be affected by visual styles. So I've created simple form with simple menu strip and disabled visual styles in Main(): // Application.EnableVisualStyles(); <-- no visual…
LihO
  • 41,190
  • 11
  • 99
  • 167
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

WinForms Panel's Fixed3D border is not rendered with the OS visual styles

If the BorderStyle property of many intrinsic WinForms controls, such as ListView or TreeView, is set to Fixed3D, the border of such a control is rendered using the OS visual styles (sure, if they are enabled). However, this does not work for the…
TecMan
  • 2,743
  • 2
  • 30
  • 64
0
votes
0 answers

Set colors for Windows native balloon tooltips when visual styles are on

I have a legacy code that creates Windows native balloon tooltips. In previous versions of Windows I could set custom background and foreground colors for tooltips using the TTM_SETTIPBKCOLOR and TTM_SETTIPTEXTCOLOR messages with the following…
TecMan
  • 2,743
  • 2
  • 30
  • 64
0
votes
1 answer

Retrieve border color of WinForms ListBox/ListView rendered with OS visual styles

If we create a new WinForms .NET project and place a ListBox or ListView control on it, by default they are rendered using the OS visual styles: I need to draw a 1-pixel border similar to what the system provides for ListBox/ListView in my custom…
TecMan
  • 2,743
  • 2
  • 30
  • 64
0
votes
0 answers

WinForms:EnableVisualStyles() doesn't work if a USING statement is in program.cs?

So in my program.cs file, this default code works perfectly: Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault (false); Application.Run (new frmClarity()); However, if I try to add a using statement,…
John
  • 185
  • 1
  • 3
  • 17
0
votes
1 answer

Warning BC42025 when trying to applying VisualStyler.ApplyExcludeTag() method to Tab Control

I try to apply SkinSoft.VisualStyler.ApplyExcludeTag(control As Control, childControls As Boolean) method to Tab Control to disable Skin for this control as below code: Private Sub MaintenanceProgramForm_Load(sender As Object, e As EventArgs) …
Ferekikoo
  • 23
  • 5
0
votes
0 answers

Getting hwnd for uxtheme.dll DrawThemeParentBackground from a Graphics object

I am dealing with some old drawing code used to draw parts of styled system controls in a WinFroms app. One of the core routines that does this work looks like the following: private bool DrawTheme(Graphics graphics, XPThemeClasses themeClass, int…
TecMan
  • 2,743
  • 2
  • 30
  • 64
0
votes
0 answers

VisualStyles in C# WinForms

I am having issues with VisualStyles in a C# WinForms application. I have enabled VisualStyles with the line Application.EnableVisualStyles(); and everything is working on my development PC (running Windows 10 v1709). However, when I run the exact…