|
-
August 14th, 2003, 08:54 AM
#1
Drawing
Last edited by mea3581; August 8th, 2016 at 10:40 PM.
-
August 14th, 2003, 09:07 AM
#2
I don't think dialog has OnDraw member. Try to override OnPaint instead.
Hope it will help you
-
August 15th, 2003, 10:37 PM
#3
Hi !
To draw a graphic on a dialog box you need to add an event handler for t he WM_PAINT message on the dialog .you cthen choose to add your drawing code directly using the CPaintDC pointer or calling your OnDraw function with the CPaintDC pointer as argument .the code should look like this :
void CMyClass::OnPaint()
{
CPaintDC dc(this); //framework generated code for painting
OnDraw(&dc);
}
Please let me know if this code works
-
August 15th, 2003, 11:01 PM
#4
OK
Using this in the Onpaint works well!
Fulu Tao
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
|