AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren

Change system colors (W8+)

Ein Thema von WojTec · begonnen am 10. Aug 2017 · letzter Beitrag vom 11. Aug 2017
Antwort Antwort
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#1

Change system colors (W8+)

  Alt 10. Aug 2017, 16:44
Delphi-Version: XE6
This:

Delphi-Quellcode:
DwmGetColorizationParameters(Params);
Params.nIntensity := 70;
Params.clrColor := SwapRB(AColor);
DwmSetColorizationParameters(@Params, BOOL(0));

can change windows borders and taskbar color on W7 (Aero), but on W10 (W8 not tested) changing only windows borders outline (titlebar and taskbar colors not changed). How to on W8+ change these colors?
  Mit Zitat antworten Zitat
Der schöne Günther

Registriert seit: 6. Mär 2013
6.093 Beiträge
 
Delphi 10 Seattle Enterprise
 
#2

AW: Change system colors (W8+)

  Alt 10. Aug 2017, 18:23
That "DwmSetColorizationParameters" was an undocumented function which was never intended for public use. Things like this regularly stop to be supported without public notice.

For me, it works changing the "AccentColor" key in HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM and broadcasting a WM_DWMCOLORIZATIONCOLORCHANGED message afterwards

Source: http://www.pinvoke.net/default.aspx/...tionParameters


Nevertheless, I would hate an application for changing my personal settings. I'm sure you know this and have a good reason for messing the the users personalization settings
  Mit Zitat antworten Zitat
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#3

Re: Change system colors (W8+)

  Alt 11. Aug 2017, 11:31
Hmm, it changing titlebars only, taskbar and startmenu stay in current color, in personalize -> color also is old color
  Mit Zitat antworten Zitat
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:30 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz