OnResize and OnPaint

D

dk60

in my application, the user creates graphics (ellipses etc.) on the
form, but when the form repaints or resizes the graphics disappear. is
there a simple way to make the methods OnPaint and OnResize draw
everything that's on the form?
 
J

Jeff Gaines

in my application, the user creates graphics (ellipses etc.) on the
form, but when the form repaints or resizes the graphics disappear. is
there a simple way to make the methods OnPaint and OnResize draw
everything that's on the form?

Yes.
You need to save what the user is drawing and then re-draw it in OnPaint.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top