Change background color of dialog box title 
Author Message
 Change background color of dialog box title

G'Day,

I can use SetWindowText("Tony"); to set the title of dialog box, I want to
change the background colour, as a status indicator...
Any Ideas how to do that ??

TIA
Tony



Sun, 23 Nov 2003 14:48:01 GMT  
 Change background color of dialog box title

Quote:

> G'Day,

> I can use SetWindowText("Tony"); to set the title of dialog box, I want to
> change the background colour, as a status indicator...
> Any Ideas how to do that ??

> TIA
> Tony

It's not simple.  You handle the WM_NCPAINT message and paint the entire
titlebar yourself, and handle WM_ACTIVATE to emulate the color change
that happens when the window gets/loses focus.

--
Scott McPhillips [VC++ MVP]



Sun, 23 Nov 2003 18:30:09 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Changing background color of Dialog Title bar

2. Change Dialog Box Background Color

3. Change background color of a Dialog box?

4. I would like to change the background color of a dialog box

5. Change background color of a Dialog box?

6. Changing the Background Color of a Dialog to match the background of a Bitmap

7. Changing Title Background color

8. Change the background color of a dialog box and change text color of Edit Box, Static Text, Rich Edit

9. Changing background color of a group box

10. changing background color of a message box?

11. How to change the background color of an edit box

12. Changing the background color of a check box...

 

 
Powered by phpBB® Forum Software