Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTPButton
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPButton

 Post Reply Post Reply
Author
Message
weberxi_an@163.com View Drop Down
Newbie
Newbie


Joined: 21 September 2011
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote weberxi_an@163.com Quote  Post ReplyReply Direct Link To This Post Topic: CXTPButton
    Posted: 21 September 2011 at 5:28am

how can I change the CXTPButton backgroud color?

Back to Top
weberxi_an@163.com View Drop Down
Newbie
Newbie


Joined: 21 September 2011
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote weberxi_an@163.com Quote  Post ReplyReply Direct Link To This Post Posted: 22 September 2011 at 2:34am
class CMyXTPButton : public CXTPButton
{
public:
 CMyXTPButton(){};
 ~CMyXTPButton(){};

 virtual COLORREF GetButtonBackColor()
 {
  return RGB(140,220,65);
 }
};Tongue

don't use this funciton SetTheme。
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.141 seconds.