Groups | Blog | Home
all groups > dotnet drawing api > april 2004 >

dotnet drawing api : Refresh problems



badBilly NO[at]SPAM currantbun.com
4/11/2004 5:13:22 AM
Hi All,

I am drawing to a DirectX surface that is clipped to a picturebox.
Everything that I draw is fine. If I move another window over the top
of the picturebox and move it around, the OnPaint event fires, and I
can redraw. However, if the window that is obscuring my picturebox is
minimized, the OnPaint event is not fired, and I end up with a blank
area on my picturebox. The same thing happens with dialogs that get
closed over my draw area (e.g. OpenDialog, SaveDialog)

Is there a better method that I can use to know when I need to redraw?

Does anyone have any suggestions?

Regards

badBilly NO[at]SPAM currantbun.com
4/16/2004 12:45:34 PM
In case anyones interested, the solution was to implement an
IMessageFilter, and do my drawing on a WM_PAINT message. I would have
thought the picturebox or the form should have picked up on this
AddThis Social Bookmark Button