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
2
votes
1 answer

How can I enable Vista/Win 7 theming/style for a ToolTip control?

In Windows Vista and Windows 7, ToolTips have a new visual style or theme, they are shiny grey metallic. How can I enable the new style for a ToolTip control? Some controls, like ListViews and ToolBars, use the new tooltips automatically, but other…
2
votes
1 answer

Determining which visual style is used?

Is there a method to determine which visual style (Classic, "XP Style", Aero, etc') is currently used? App is native, so .net solutions are out.
cvb
  • 4,321
  • 6
  • 26
  • 19
2
votes
2 answers

Problem with TabControl alignment in VB.NET

I'm having a weird behaviour with a left-aligned TabControl in VB.NET. Screenshot: What I wanted was to have the tabs literally the same way they would be if rotated 90 degrees to the left. Does it have something to do with the fact I'm not (god…
Camilo Martin
  • 37,236
  • 20
  • 111
  • 154
2
votes
2 answers

Change WPF application manifest?

I posted a comment to Microsoft that the Dialog Boxes in WPF are not VisualStyle enabled. Joe Castro posted a workaround there which I don't really understand how to achieve, can anyone help? Here is he's response: For app compat reasons…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
1
vote
1 answer

Selectively Enable Visual Styles on Dialogs/Windows

I've implemented the use of visual styles on all common controls through the use of a manifest file as directed by this article - http://msdn.microsoft.com/en-us/library/bb773175.aspx. Is there a way to disable the use of visual styles for a…
shadeMe
  • 706
  • 1
  • 10
  • 30
1
vote
1 answer

Problems drawing Windows 10 Caption Buttons

I'm having problems drawing Windows 10 themed Window Caption Buttons using the VisualStyleRenderer class. My problem is that I can't figure out which Theme Class to use. I tried Window and CompositedWindow::Window, however, none of those actually…
thebear8
  • 194
  • 2
  • 11
1
vote
1 answer

How to create a new visual style for a MFC ribbon?

The application is using the Windows 7 ribbon style by default: CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerOffice2007)); i want to create a new Visual Style where i implemented different colors, so i created the class…
1
vote
2 answers

Enable Visual Styles for a Class Library

how do I enable visual styles when my project is a class library and it's being loaded into a program that does not have Application.EnableVisualStyles() set. I have been struggling with this for 2 days now. This is in C# (I've seen some examples…
Ivan
  • 303
  • 1
  • 2
  • 8
1
vote
0 answers

Checking whether WinForms app is rendered with OS visual styles

We have a legacy WinForms app written at the times of .NET 1.x and may need to change the code that checks whether the app is rendered with the OS visual styles for the reason described below. The current function that does this work looks like…
TecMan
  • 2,743
  • 2
  • 30
  • 64
1
vote
2 answers

How to make Edit1.Font.Charset work with themes (visual styles)

If you have a non-themed, non-Unicode VCL application with an TEdit "TestEdit" and set TestEdit.Font.Charset to RUSSIAN_CHARSET TestEdit displays cyrillic characters. If however you switch the app to use theming this doesn't work anymore. Try the…
Uli Gerhardt
  • 13,748
  • 1
  • 45
  • 83
1
vote
2 answers

Why does my vb.net title bar come out white

For some reason, when I am designing my Windows Application, the form outline/title bar is blue in colour, but when the application runs, it comes out white. Why does it do this and how do I get it to display the normal colour that all windows…
1
vote
0 answers

ListViewGroup visible by disabled VisualStyles

I wrote a .net-DLL (vb.net), which includes a Windows-Form. The Windows-Form includes a ListView. The ListView are working in the view "details" and have some ListViewGroups. When I implement the DLL with the Windows-Form and the ListView in one of…
Cit
  • 113
  • 1
  • 10
1
vote
1 answer

VisualStyleRenderer returns error for menu item

The code var renderer = new VisualStyleRenderer(VisualStyleElement.Menu.Item.Normal); returns the following message Given combination of Class, Part, and State is not defined by the current visual style. on a Windows 8.1 machine. Does anybody…
Mladen Mihajlovic
  • 6,095
  • 7
  • 40
  • 55
1
vote
1 answer

Is it possible for Visual Studio to use default colors when pasting into other applications (eg. Outlook)?

I have a custom color theme within visual studio which uses a dark background which looks great, however when I copy & paste into Outlook I would like outlook to use the default formatting, is this possible? My current workaround is to simply paste…
1
vote
0 answers

Visual Styles disabled while DWM is working

I have an owner-drawing window caption, which I create using C#, Windows Forms, P/Invoking dwmapi.dll and several other windows libs. To detect if the DWM is enabled, I use the next code: private bool isDwmWindowFramePaintEnabled() { try { …
Artem Kachanovskyi
  • 1,839
  • 2
  • 18
  • 27