When you use WPF (which uses DirectX) you quickly notice one fact that WPF themes are independent from windows themes and styles.
I'm playing with GUI using opengl on windows and right now I have one problem: I want to use windows themes and styles. I don't want to go WPF route and make it independent.
I know that all information about i...
I need to extract some bitmaps from an .msstyles file (the Windows XP visual style files) and I'm not sure where to start. I can't seem to find any documentation on how to do it, and the file format seems to be binary and not easily parsed. I have been able to extract the bitmap by itself using:
IntPtr p = LoadLibrary(UxTheme.ThemeName)...
We custom draw our push buttons in Vista, which allows us to use the fading / BufferedPaintAnimation features. However one thing that has eluded me is how to handle the default button. This is the one that continues fading (pulsing) that is not in response to user action. I have considered setting a timer for the animation duration, but ...
Is there an API call to determine the size and position of window caption buttons? I'm trying to draw vista-style caption buttons onto an owner drawn window. I'm dealing with c/c++/mfc.
Edit: Does anyone have a code example to draw the close button?
...
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 instead of the flat battleship gray that you would get otherwise. But I need to turn off vi...
Hi!
I'm working on a WinForms SmartClient application, which uses a lot of RichTextBox controls - some in place of the regular TextBox for various reasons. Unfortunately the RichTextBox draws the ugly Win95 3D border instead of the themed XP or Vista style border.
Does anyone know of a way to apply the themed border to the RichTextBox?...
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 Vista, but NULL on Windows XP.
I've read the documentation for OpenThemeData and Parts a...
While trying to modernize the appearance of an old C++Builder / Delphi application, I enabled visual themes (visual styles) and was surprised at just how much of a performance hit themes added. For example, for our primary setup page (an 11-tab, 200-control monster dialog that we don't want to redo right now for reasons of development t...
In Windows XP's CMD, the Luna border isn't applied to it.
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 course I am not going to force any of my applications to not use the beautiful XP/Aero theme :P
Thanks.
...