Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Focus rectangle color of buttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Focus rectangle color of buttons

 Post Reply Post Reply
Author
Message
linfan View Drop Down
Newbie
Newbie


Joined: 05 February 2007
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote linfan Quote  Post ReplyReply Direct Link To This Post Topic: Focus rectangle color of buttons
    Posted: 18 March 2007 at 8:46pm
I've created a new skin and set the button text to white, but the focus rectangle now looks like rectangle with a black solid frame, how to adjust the color of focus rectangle?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 19 March 2007 at 2:09am
Hi, thanks we will fix this frame. You can change sources for now.
 
In CXTPSkinObjectButton::DrawButtonText method add
   pDC->SetTextColor(0);
   pDC->SetBkColor(0xFFFFFF);
before
::DrawFocusRect(pDC->GetSafeHdc(), &rc);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
linfan View Drop Down
Newbie
Newbie


Joined: 05 February 2007
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote linfan Quote  Post ReplyReply Direct Link To This Post Posted: 19 March 2007 at 7:12am
Thanks very much!
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.156 seconds.