Re: UpdateWindow vs. WM_PAINT

2004-09-21 Thread Robert Shearman
Michael Kaufmann wrote: Hi, I've noticed that many Windows controls don't wait for a WM_PAINT message. They redraw themselves immediately (with GetDC/ReleaseDC, UpdateWindow or RedrawWindow). This is necessary if a program is carrying out a lengthy operation without fetching messages. TextPad is

UpdateWindow vs. WM_PAINT

2004-09-20 Thread Michael Kaufmann
Hi, I've noticed that many Windows controls don't wait for a WM_PAINT message. They redraw themselves immediately (with GetDC/ReleaseDC, UpdateWindow or RedrawWindow). This is necessary if a program is carrying out a lengthy operation without fetching messages. TextPad is such a program: Its pr