|
From: Abhijit S. <mu...@gm...> - 2002-09-25 15:13:14
|
----- Original Message ----- From: Vlada Djurovic To: DevC++ help Sent: Tuesday, September 24, 2002 6:08 PM Subject: [Dev-C++] restoring window Hello, list I wrote a program for drawing in a window( nothing special, just colord lines). It works fine, but, when I minimize the window, and then restore it, the lines are gone. I suppose that when I restore the window from minimized state, a WM_PAINT message is posted. Is this correct? Is there some API function which can restore the contents of the window in response to this message or I have to do it myself? ---------------------- You can force a redraw when you receive WM_SIZE messages, by calling InvalidateRect() or InvalidateRgn(). ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |