OnDraw, how can I get the rectangle that is painting ?
-
Hi, OnDraw..., draws all the screen ?, or with InvalidateRect(...), draws only a portion of the screen ?, I call ScrollWindow ( in a scroll view), how can I get in the on Draw method the rectangle of the screen that will be new drawn ( not moved) ? Thanks, Bye ! Braulio
-
Hi, OnDraw..., draws all the screen ?, or with InvalidateRect(...), draws only a portion of the screen ?, I call ScrollWindow ( in a scroll view), how can I get in the on Draw method the rectangle of the screen that will be new drawn ( not moved) ? Thanks, Bye ! Braulio
You receive this rectangle when you call BeginPaint in your WM_PAINT message handler. The classwizard adds this function for you. Note that your OnDraw will also be called for printing. ================== The original message was: Hi,
OnDraw..., draws all the screen ?, or with InvalidateRect(...), draws only a portion of the screen ?, I call ScrollWindow ( in a scroll view), how can I get in the on Draw method the rectangle of the screen that will be new drawn ( not moved) ?
Thanks, Bye !
Braulio -
Hi, OnDraw..., draws all the screen ?, or with InvalidateRect(...), draws only a portion of the screen ?, I call ScrollWindow ( in a scroll view), how can I get in the on Draw method the rectangle of the screen that will be new drawn ( not moved) ? Thanks, Bye ! Braulio