Re: Drop WM_ERASEBKGND handling in gdkevents-win32.c?



Owen Taylor writes:
 > There is a third possible issue - if you are moving another window over
 > a window, does windows send:
 > 
 >  ERASEBKGND
 >  ERASEBKGND
 >  ERASEBKGND
 >  PAINT
 > 
 > Or is ERASEBKGN only sent immediately before PAINT? 

If I understand correctly, WM_ERASEBKGND is sent when you call
BeginPaint() (during handling of WM_PAINT), not directly, so the
window procedure gets invoked recursively. (Not uncommon at all.)

--tml




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]