Link to home
Start Free TrialLog in
Avatar of sternocera
sternocera

asked on

MFC: When drawing in a view by overloading OnDraw(CDC* pDC), how can the view be explicitly redrawn?

Hello,

I'm drawing on an MFC view in the usual manner - by overloading OnDraw(CDC* pDC). When I change some setting which will cause the view to be drawn in a different way then it was previously drawn (in my case, change the "page" of the view, an int, which will cause my OnDraw to draw another area), there is no way that I'm aware of to tell the view to redraw - I must resize the window or something.

How can the view be explicitly redrawn?

Regards,
Sternocera
ASKER CERTIFIED SOLUTION
Avatar of alb66
alb66
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sternocera
sternocera

ASKER

Great, thanks alb66.