c++ - Win32: How can i set the color of windows Title, Scrollbar etc.? -


i updating gui of win32 application in white text on black background. thats simple content. how can change color of child windows (titlebar, scrollbar etc.). know there wm_ctlcolordlg set color of dialogs. know there wm_ncpaint, leave painting (i.e of scrollbars) me. want, set colors of choice.

you can use setsyscolors() change colour window captions, borders, etc. (see http://msdn.microsoft.com/en-us/library/ms724940(vs.85).aspx). change colour windows, not yours, @ least unfriendly thing do.

one option use setsyscolors() change active window caption colour when application has focus , reset defaults when loses focus. i'd that's klunky , not in keeping practice (suppose application crashes? , there might flickering).

wm_ncpaint there can things this. bit of pain, maybe that's discourage creating non-standard windows... ;-)


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -