Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - [solved] v17 BUG  - DrawButtonText ignores color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] v17 BUG - DrawButtonText ignores color

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


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (1) Thanks(1)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Topic: [solved] v17 BUG - DrawButtonText ignores color
    Posted: 11 January 2016 at 8:20am
CXTPButtonTheme::DrawButtonText

calls the virtual method

GetButtonTextColor()

to determine the color to draw the button text. In my case, this is white because the dialog background is dark gray.

This worked before. Now the method first sets the text color of the DC to the color returned by the virtual  GetButtonTextColor() method, but then overrides this in the line

if (bStyle & (BS_RADIOBUTTON | BS_AUTORADIOBUTTON | BS_CHECKBOX | BS_AUTOCHECKBOX))
    {
        pDC->SetTextColor(m_crTextCheck);
    }

It is no longer possible to use a custom text color with radio buttons or check boxes. Why is that? Are GetButtonTextColor no longer supported?


Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2016 at 3:19pm
Hi, this has been already fixed  (from v17.1).
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.125 seconds.