|
From: <ste...@ge...> - 2002-09-25 14:28:53
|
----- Original Message -----
From: "Vlada Djurovic" <dj...@im...>
To: "'Per Westermark'" <pw...@ia...>
Cc: "'DevC++ help'" <dev...@li...>
Sent: Wednesday, September 25, 2002 3:36 PM
Subject: RE: [Dev-C++] restoring window
> I'm having some problems with this, because the program "freezes" when I
> use WM_PAINT. Is this message generated when dialog box pops up in front
> of the window or when I draw line with the mouse? Is there some other
> message that causes window to redraw its content?
Also when moving then window outside the screen ;)
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf Of Per
> Westermark
> Sent: utorak, 24. septembar 2002 14:45
> To: Vlada Djurovic
> Cc: DevC++ help
> Subject: Re: [Dev-C++] restoring window
>
> Sorry.
>
> Either perform all drawing to a bitmap that may be blitted back to the
> window on a WM_PAINT, or keep a list of all draw operations, and replay
> the list. The OS does not keep track of the contents of the windows.
>
> /Per W
>
>
> On Tue, 24 Sep 2002, Vlada Djurovic wrote:
>
> > 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?
Stein Nygård - http://steinware.dk
lapido, ergo sum
|