setting text and background colors for a control 
Author Message
 setting text and background colors for a control

How do you get the colors set in a control for the text
and background?


Sun, 18 Apr 2004 05:50:14 GMT  
 setting text and background colors for a control
Hi Russell,
   That would depend a great deal on the control.  You can
set your default dialog fore/back colors in your InitApp()
area 'SetDialogBkColor(rgb,rgb)', and for particular
controls, you'll have to override their drawing routines
and set the colors on their DCs.  Hope that helps.

Frank

Quote:
>-----Original Message-----
>How do you get the colors set in a control for the text
>and background?
>.



Sun, 18 Apr 2004 06:07:00 GMT  
 setting text and background colors for a control
Some(most) controls respond to OnCtlColor for changing text and background
color. For others, you need to override OnEraseBkgnd()/owner draw.

--
Ajay Kalra [MVP - VC++]

Note: Please post all replies to newsgroup only.


Quote:
> How do you get the colors set in a control for the text
> and background?



Sun, 18 Apr 2004 06:50:26 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. set the text color and the background color of a Control Cbutton

2. Setting the background color of Static Text item and window

3. Setting background & text color

4. Setting text and background color in CEdit

5. how to set text background color

6. Setting background color on subclassed control

7. How do you set the background color of a CEdit control

8. Changing the background color of a static text control

9. Color background of text in list control

10. Colored background and text in a CEdit control

11. Background Color, Text Color

12. Background color and text color in menu

 

 
Powered by phpBB® Forum Software