Which version of Windows are you using?
You need not include individual COLOR_* defines in your program. Just include "wcolors.ch", which contains all these defines.
Now I need to Change the WINDOW TITLE COLOR. Where it is written:
Assign your colors to COLOR_ACTIVECAPTION, COLOR_INACTIVECAPTION, COLOR_CAPTIONTEXT, COLOR_INACTIVECAPTIONTEXT.
Please note that these changes will work only with Windows XP to 8.1.
This does not work with Windows 10 and later.
So, if you write your applications to be used only on older OS like Windows XP to Windows 8.1, then you can use "SetSysColors" to set your own theme, Dark or something else. Your applications will not get the desired effect on Windows 10 and later.
The point I am trying to make is that if you read any articles or advices to use SetSysColors() to implement DarkTheme, they are all old and obsolete. If we proceed in this direction, we are only wasting our time.