|
-
October 6th, 2004, 12:00 PM
#1
color window
hello
i created a dialog based application and using
Code:
CClientDC dc(this);
CRect r;
GetClientRect(&r);
dc.Rectangle(r);
i draw color to the dialog box. but, my problem is whenever OnPaint() in called, the color will over write all buttons etc. how to make the buttons visible again?
-
October 6th, 2004, 12:08 PM
#2
Re: color window
If you want colored dialogs or controls you must handle WM_CTLCOLOR message.
See an example here.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|