Actually, you will need to use the WM_SETREDRAW message.  This will only
block WM_PAINT messages, but is much less resource intensive.  Just remember
to call Update after you set the window to redraw...  The LockWindowUpdate
method will stop you from drawing on the panel altogether! - so your BITBLT
will fail.

BTW, InvalidateRect actually marks the rect as a region for redraw.

Dennis.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of McKenzie, Paul
> Sent: Tuesday, 17 August 1999 14:44
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: Freeze updates
>
>
> LockWindowUpdate(Form1.Handle);
> UnLockWindowUpdate(0);
>
> Check out Win32.hlp
>
> Regards
> Paul
> [EMAIL PROTECTED]
> (Wellington - New Zealand)
>
>
> -----Original Message-----
> From: Alistair George [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 17 August 1999 02:37 PM
> To: Multiple recipients of list delphi
> Subject: [DUG]: Freeze updates
>
>
> Can someone tell me how to stop a window display from being
> refreshed/updated?
> It is being used as a video capture window, and as I am
> writing the data to
> a bitmap, it is being changed eg
> //freeze panel updates here then..
> BitBlt(BMP[framecount].hdc, 0, 0, panel1.Width,
> Panel1.Height, hdc, 0, 0,
> SRCCOPY);
> //now unfreeze updates
> //where hdc is hdc:=GetDC(hwndc);//panel1.handle
>
> All I see is refresh, invalidate and so on.
> I have tried:
> InvalidateRect( hwndc, NIL, FALSE ) ;
>
>
> Tks,
> Al+
>
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to