Background color for static text 
Author Message
 Background color for static text

Hi there!

How can I set the background-color of a static text?

Thx!
    J.S.



Sat, 22 May 2004 19:50:47 GMT  
 Background color for static text
Handle the WM_CTLCOLORSTATIC message for the control.


Sat, 22 May 2004 20:53:26 GMT  
 Background color for static text
Check out my reply to yhf  "help me" in this newsgroup 12/03/2001 8:48pm
You would definitely want to use the "TRANSPARENT" mode mentioned, which
would let your text background always "match" the dialog color.

balboos

--


Quote:
> Hi there!

> How can I set the background-color of a static text?

> Thx!
>     J.S.



Sat, 22 May 2004 21:03:54 GMT  
 Background color for static text

Quote:

>How can I set the background-color of a static text?

For sample code, see here :

www.mooremvp.freeserve.co.uk/Win32/w32tip37.htm

--
Bob Moore [WinSDK MVP]
http://www.mooremvp.freeserve.co.uk/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Do not reply via email unless specifically requested to do so.
Unsolicited email is NOT welcome and will go unanswered.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Sun, 23 May 2004 04:44:25 GMT  
 
 [ 4 post ] 

 Relevant Pages 

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

2. Win2K: static background color vs. CFormView background color

3. Changing the background color of a static text control

4. Static text background color question

5. static text background color

6. Background Color, Text Color

7. Background color and text color in menu

8. Change text color and background color in CEditView

9. Change a part of Background color or a part of text color from CListCtrl

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

11. set text color on static text

12. How to color text in a Static Text Control

 

 
Powered by phpBB® Forum Software