..
Printable View
..
I don't think dialog has OnDraw member. Try to override OnPaint instead.
Hope it will help you
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
Using this in the Onpaint works well!