xp-theme

Windows XP Style: Why do we get dark grey background on static text widgets?

纵然是瞬间 提交于 2019-12-12 09:42:40
问题 We're writing Windows desktop apps using C++ and Win32. Our dialog boxes have an ugly appearance with "Windows XP style": the background to the static text is grey. Where the dialog box background is also grey, this is not a problem, but inside a tab control, where the background is white, the grey background to the text is very noticeable. In the past we have done a lot of our own drawing of controls, but these days we are trying to use the standard look'n'feel as much as possible, and to

TAB control background in ATL App, XP styles

久未见 提交于 2019-12-11 09:28:56
问题 I have an ATL application with a dialog containing a TAB control. The App uses a common controls manifest. Under XP with visual styles, the tab control background is a different color than the dialog and the controls (mostly checkboxes), so it looks quite ugly. Screenshot How can I fix that? 回答1: Here you could find answer to your question. 回答2: There is - apparently - one thing to do to get tab control pages colored correctly using XP visual styles. In the WM_INITDIALOG handler for each page

Windows XP Style: Why do we get dark grey background on static text widgets?

。_饼干妹妹 提交于 2019-12-05 12:43:43
We're writing Windows desktop apps using C++ and Win32. Our dialog boxes have an ugly appearance with "Windows XP style": the background to the static text is grey. Where the dialog box background is also grey, this is not a problem, but inside a tab control, where the background is white, the grey background to the text is very noticeable. In the past we have done a lot of our own drawing of controls, but these days we are trying to use the standard look'n'feel as much as possible, and to avoid overriding standard behaviour as much as possible. We are using the Win32 API, which is getting a

How to switch an Application between Themed and not Themed at run-time?

非 Y 不嫁゛ 提交于 2019-11-28 06:28:16
Very much like the "Project|Options|Application|Enable runtime themes" CheckBox, but dynamically at run-time instead. [Delphi XE targetting Win XP or Win 7] I tried playing a bit with uxTheme.SetWindowTheme without success so far.... RRUZ Just for complement the Rob Kennedy answer, you must use the SetThemeAppProperties in this way. uses UxTheme; procedure DisableThemesApp; begin SetThemeAppProperties(0); SendMessage(Application.Handle,WM_THEMECHANGED,0,0); SendMessage(Application.MainForm.Handle,CM_RECREATEWND,0,0); end; procedure EnableThemesApp; begin SetThemeAppProperties(STAP_ALLOW