D
Dave Veeneman
I'm creating a custom control that uses the OnPaint event to paint a
graphic. The graphic needs to resize itself when the control is resized.
Right now, I'm trapping the Resize event to trigger the paint. However, the
Resize event appears to fire repeatedly as the control is being resized,
which causes the control to repaint repeatedly, chewing up CPU capacity.
I'd like to have the control redraw only when the resize is complete, not
while it is in process. Is there a simple way to do this? Thanks.
Dave Veeneman
Chicago
graphic. The graphic needs to resize itself when the control is resized.
Right now, I'm trapping the Resize event to trigger the paint. However, the
Resize event appears to fire repeatedly as the control is being resized,
which causes the control to repaint repeatedly, chewing up CPU capacity.
I'd like to have the control redraw only when the resize is complete, not
while it is in process. Is there a simple way to do this? Thanks.
Dave Veeneman
Chicago