Click here to Skip to main content
16,010,286 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralThank you guys Pin
adara23-Mar-02 5:49
adara23-Mar-02 5:49 
GeneralConnecting to a remote ATL server Pin
HawkSoftware22-Mar-02 19:44
HawkSoftware22-Mar-02 19:44 
GeneralRe: Connecting to a remote ATL server Pin
Tim Smith23-Mar-02 4:01
Tim Smith23-Mar-02 4:01 
GeneralTrue/High color toolbars Pin
alex.barylski22-Mar-02 19:14
alex.barylski22-Mar-02 19:14 
GeneralRe: True/High color toolbars Pin
Nish Nishant22-Mar-02 20:10
sitebuilderNish Nishant22-Mar-02 20:10 
GeneralRe: True/High color toolbars Pin
alex.barylski22-Mar-02 20:43
alex.barylski22-Mar-02 20:43 
GeneralRe: True/High color toolbars Pin
Nish Nishant22-Mar-02 20:55
sitebuilderNish Nishant22-Mar-02 20:55 
GeneralCButton Color :: MFC Pin
valikac22-Mar-02 17:42
valikac22-Mar-02 17:42 
Hi.

I would like to know how to change (repaint) a new color for a CButton object, both group and/or options.

For example:

...
CButton mBtnGreen;
...

mBtnGreen.Create("Green", WS_CHILD | WS_VISIBLE | BS_CHECKBOX
CRect(CPoint(0, 0), CSize(25, 50)), this,
IDC_BTNOPT_GREEN);

...

By default, the color of option (button) "Green" is light gray, like cream. I would like to change the color of the background of the button and/or text. By default, the text is black.

I tried repaint the entire client area, but MFC ignores the button areas.

Thanks,
Kuphryn
GeneralRe: CButton Color :: MFC Pin
alex.barylski22-Mar-02 19:09
alex.barylski22-Mar-02 19:09 
Generaldisk space of an object Pin
Marcus Spitzmiller22-Mar-02 16:40
Marcus Spitzmiller22-Mar-02 16:40 
GeneralRe: disk space of an object Pin
Nish Nishant22-Mar-02 20:34
sitebuilderNish Nishant22-Mar-02 20:34 
GeneralRe: disk space of an object Pin
Marcus Spitzmiller23-Mar-02 4:17
Marcus Spitzmiller23-Mar-02 4:17 
GeneralRe: disk space of an object Pin
David Defoort22-Mar-02 23:23
David Defoort22-Mar-02 23:23 
GeneralRe: disk space of an object Pin
Marcus Spitzmiller23-Mar-02 4:04
Marcus Spitzmiller23-Mar-02 4:04 
GeneralStack problems Pin
Steve Severance22-Mar-02 15:30
Steve Severance22-Mar-02 15:30 
GeneralRe: Stack problems Pin
lilei22-Mar-02 16:03
lilei22-Mar-02 16:03 
GeneralRe: Stack problems Pin
Tim Smith22-Mar-02 17:07
Tim Smith22-Mar-02 17:07 
GeneralRe: Stack problems Pin
Nish Nishant22-Mar-02 20:30
sitebuilderNish Nishant22-Mar-02 20:30 
GeneralRe: Stack problems Pin
Tim Smith23-Mar-02 4:13
Tim Smith23-Mar-02 4:13 
GeneralC2440 Pin
22-Mar-02 14:17
suss22-Mar-02 14:17 
GeneralRe: C2440 Pin
Nish Nishant22-Mar-02 14:23
sitebuilderNish Nishant22-Mar-02 14:23 
GeneralRe: C2440 Pin
22-Mar-02 14:34
suss22-Mar-02 14:34 
GeneralRe: C2440 Pin
Nish Nishant22-Mar-02 14:43
sitebuilderNish Nishant22-Mar-02 14:43 
Generalseveral Threads.....trying to access same array item Pin
22-Mar-02 14:01
suss22-Mar-02 14:01 
GeneralRe: several Threads.....trying to access same array item Pin
Nish Nishant22-Mar-02 14:13
sitebuilderNish Nishant22-Mar-02 14:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.