Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Color Handling : new Colortype
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Color Handling : new Colortype

 Post Reply Post Reply
Author
Message
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 516
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Topic: Color Handling : new Colortype
    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



Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.