That would be very difficult. The only way I can think of would be to subclass the window, catch these messages (maybe more):
WM_DISPLAYCHANGE
WM_ERASEBKGND
WM_ICONERASEBKGND
WM_NCPAINT
WM_PAINT
WM_PAINTICON
WM_PRINT
WM_PRINTCLIENT
WM_SETREDRAW
pass control back to the old handlers & assume that the time inbetween the window is painting.
Perhaps there is another method, depending on what, exactly, it is you need to do. Perhaps you could explain a little more?
GL
Mike
Main Topics
Browse All Topics





by: requiemPosted on 2000-11-27 at 10:08:31ID: 5600139
In Delphi there a a OnPaint event for each of your forms.
However, if you're talking about window which does not belong to your own application then it's going to be harder coding.
/m