Change Color of CButton, CEdit and so on 
Author Message
 Change Color of CButton, CEdit and so on

Hi, everybody.

How can I change the background and textcolor of these elements?

Thanks.
Oleg



Sun, 04 Jan 2004 17:39:28 GMT  
 Change Color of CButton, CEdit and so on

Quote:
>How can I change the background and textcolor of these elements?

Oleg,

Have a look at WM_CTLCOLOR. Note that for buttons you'll need to use
an owner-drawn control.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.



Sun, 04 Jan 2004 19:44:38 GMT  
 Change Color of CButton, CEdit and so on
Thank you David.
I did that already, CEdit & Co make this well, but CButton... it seems that
it doesn't send this message. I've found some examples, but always it need
to draw the Buttons by myself. C++ Builder makes this so easy as VB. I
wonder, how they have realized this:)
Oleg



Quote:
> >How can I change the background and textcolor of these elements?

> Oleg,

> Have a look at WM_CTLCOLOR. Note that for buttons you'll need to use
> an owner-drawn control.

> Dave
> --
> MVP VC++ FAQ: http://www.mvps.org/vcfaq
> My address is altered to discourage junk mail.
> Please post responses to the newsgroup thread,
> there's no need for follow-up email copies.



Sun, 04 Jan 2004 20:44:41 GMT  
 Change Color of CButton, CEdit and so on
For buttons you need to owner-draw them. There are examples at
            www.codeguru.com

Cheers
Check Abdoul
-------------------


Quote:
> Thank you David.
> I did that already, CEdit & Co make this well, but CButton... it seems
that
> it doesn't send this message. I've found some examples, but always it need
> to draw the Buttons by myself. C++ Builder makes this so easy as VB. I
> wonder, how they have realized this:)
> Oleg



> > >How can I change the background and textcolor of these elements?

> > Oleg,

> > Have a look at WM_CTLCOLOR. Note that for buttons you'll need to use
> > an owner-drawn control.

> > Dave
> > --
> > MVP VC++ FAQ: http://www.mvps.org/vcfaq
> > My address is altered to discourage junk mail.
> > Please post responses to the newsgroup thread,
> > there's no need for follow-up email copies.



Sun, 04 Jan 2004 21:50:33 GMT  
 Change Color of CButton, CEdit and so on
... unfortunately...



Quote:
> For buttons you need to owner-draw them. There are examples at
>             www.codeguru.com

> Cheers
> Check Abdoul
> -------------------



> > Thank you David.
> > I did that already, CEdit & Co make this well, but CButton... it seems
> that
> > it doesn't send this message. I've found some examples, but always it
need
> > to draw the Buttons by myself. C++ Builder makes this so easy as VB. I
> > wonder, how they have realized this:)
> > Oleg



> > > >How can I change the background and textcolor of these elements?

> > > Oleg,

> > > Have a look at WM_CTLCOLOR. Note that for buttons you'll need to use
> > > an owner-drawn control.

> > > Dave
> > > --
> > > MVP VC++ FAQ: http://www.mvps.org/vcfaq
> > > My address is altered to discourage junk mail.
> > > Please post responses to the newsgroup thread,
> > > there's no need for follow-up email copies.



Sun, 04 Jan 2004 21:57:29 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Change CButton color and CButton text color in CDialog

2. Changing Visable property CEdit, CButton

3. how do I change the color of CButton???

4. Change background color of CButton

5. CButton Change color of disabled radio button

6. How can I change color of CButton

7. How to change the color of a CButton

8. Change the color on CButton ?

9. Change background and text color in CButton

10. How do you change CButton color???

11. Changing color of a 'CButton button'

12. CButton backgtound color change??

 

 
Powered by phpBB® Forum Software