Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LockWindowUpdate Vs. SetRedraw

519 views
Skip to first unread message

Craig Klementowski

unread,
Apr 28, 2003, 3:13:09 PM4/28/03
to
Gurus,

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


David Lowndes

unread,
Apr 29, 2003, 3:19:13 AM4/29/03
to

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

Craig Klementowski

unread,
Apr 29, 2003, 2:07:38 PM4/29/03
to
Dave,

Great thanks. SetRedraw it is...

Craig
"David Lowndes" <dav...@mvps.org> wrote in message
news:4p9sav09cjjkhrl50...@4ax.com...

0 new messages