|
-
October 27th, 2007, 01:17 PM
#1
Dialog Background Color
Hi,
I have a question on how to color the background of a dialog multiple colors.
Generally, for a single color throughout, I would create a solid brush with the color I desire, then use WM_CTLCOLORDLG to pain the background.
What I am trying to do however, is have multple colors, a section of purple, then a section of yellow, etc.. (rectangles, squares ... )
Would anyone know how to go about implementing that (no MFC of course)..
Thanks
-
October 28th, 2007, 04:19 PM
#2
Re: Dialog Background Color
You mean drawing something on the dialog ?
If so then you have to track WM_PAINT event, paint in device context for the dialog. btw function Rectangle is used to create such shapes.
regards
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
|