Print Page | Close Window

Color Handling : new Colortype

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1162
Printed Date: 06 November 2025 at 2:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Color Handling : new Colortype
Posted By: jimmy
Subject: Color Handling : new Colortype
Date Posted: 09 September 2004 at 6:34am
Hello,

Some controls have different color for selected Item & Ctrl don't have Focus.
In the Property Grid you use ::GetSysColor(COLOR_SCROLLBAR)
and in TreeCtrl you use COLOR_3DFACE

else if (dwStyle & TVS_SHOWSELALWAYS)
    {
    if (IsWindowEnabled())
        crBack = GetXtremeColor(COLOR_3DFACE);
    else
        crBack = GetXtremeColor(COLOR_GRAYTEXT);
    }

Why not Use a own color sample: COLOR_HIGHLIGHTNOFOCUS
that use in all Controls.
And / Or make some function 'GetItemBackColor' virtual to override some colors.

    Jimmy






Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net