I was wondering if someone could explain the differences between using
LockWindowUpdate() and UnlockWindowUpdate() and SetRedraw(FALSE) and
SetRedraw(TRUE) to disable window drawing while in a block for code that is
making numerous updates to a window(in my case inserting items in a
CTreeCtrl)
Which is better? Is there a situation where I should use one method over
another?
Thanks,
Craig Klementowski
Craig,
The answer I'd been given was:
LockWindowUpdate() isn't intended for general application use. I
understand it has a specific use internal to Windows for drawing the
old style dotted rectangle.
The recommended method is to use SetRedraw.
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Great thanks. SetRedraw it is...
Craig
"David Lowndes" <dav...@mvps.org> wrote in message
news:4p9sav09cjjkhrl50...@4ax.com...