I posted the wrong one in the LockWindowUpdate series. The preceding one explained why you shouldn't be using it for stopping flickering.
Regards Sean Cross Chief Information Officer Catalyst Risk Management Ltd PO Box 230 50 Dalton St Napier 4140 DDI: 06-8340362 mobile: 021 270 3466 Visit us at http://www.catalystrisk.co.nz/ Offices in Auckland, Napier, Wellington, Christchurch & Queenstown Disclaimer: "The information contained in this document is confidential to the addressee(s) and may be legally privileged. Any view or opinions expressed are those of the author and may not be those of Catalyst Risk Management Ltd. No guarantee or representation is made that this communication is free of errors, viruses or interference. If you have received this e-mail message in error please delete it and notify me. Thank you." > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Ross Levis > Sent: Wednesday, 14 November 2007 5:19 p.m. > To: 'Borland's Delphi Discussion List' > Subject: RE: Way to paint the screen once, instead of multiple times > for control resizing? > > I don't see anything in that blog to suggest it is not useful purposes > other > than drag operations. One comment says... > > "We use LockWindowUpdate for avoiding extensive redraw operations when > reorganizing child windows/controls in an window. Without it you can > see the > windows changing position, with it you don't and you just go from one > layout > to the new one without flickering." > > It sounds like the best method is to use DeferWindowPos but that looks > much > more difficult to use. > > Ross. > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf > Of Sean Cross > Sent: Tuesday, 13 November 2007 3:49 p.m. > To: Borland's Delphi Discussion List > Subject: RE: Way to paint the screen once, instead of multiple times > for > control resizing? > > Don't use LockWindowUpdate. See > http://blogs.msdn.com/oldnewthing/archive/2007/02/21/1735472.aspx > > > Regards > > Sean Cross > Chief Information Officer > > Catalyst Risk Management Ltd > PO Box 230 > 50 Dalton St > Napier 4140 > DDI: 06-8340362 > mobile: 021 270 3466 > Visit us at http://www.catalystrisk.co.nz/ > _______________________________________________ Delphi mailing list -> Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi