Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - How to change font color on CXTPButton
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to change font color on CXTPButton

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


Joined: 17 May 2012
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote matthewkim Quote  Post ReplyReply Direct Link To This Post Topic: How to change font color on CXTPButton
    Posted: 17 May 2012 at 3:27am
Hi,all.

I'm in middle of making an application program on skin framework based.
I want to change font color on CXTPButton. Although I was trying to change the TextColor in ini file , it wasn't changed..
How to change font color on CXTPButton?
Back to Top
tomay3000 View Drop Down
Groupie
Groupie
Avatar

Joined: 08 December 2010
Location: Algeria
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote tomay3000 Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2012 at 8:22am
COLORREF SetTextColor(
  __in  HDC hdc,
  __in  COLORREF crColor
);

from here: http://msdn.microsoft.com/en-us/library/dd145093%28v=vs.85%29.aspx

call it from inside this message handler:
afx_msg HBRUSH OnCtlColor(
   CDC* pDC,
   CWnd* pWnd,
   UINT nCtlColor 
);


you can find an example in here:
http://msdn.microsoft.com/en-us/library/0wwk06hc%28v=vs.110%29.aspx
Product: Codejock ToolkitPro MFC v16.2.0
Platform: Microsoft Windows 8 Pro (64-bit)

Language: Microsoft Visual C++ v6.0 (MFC)
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.172 seconds.