Thanks, for good tip.
"Joseph M. Newcomer" wrote:
Generally, no. I have classes like
class CStaticEx : public CStatic {
public:
void SetWindowText(LPCTSTR s)
{
CString old;
CStatic::GetWindowText(old);
if(old == s)
return;
CStatic::SetWindowText(s);
}
};
Avoid UpdateData entirely. It will flicker you to death.
For ListBoxes, as already pointed out, SetRedraw(FALSE) is good before doing massive
updates.
See my essays on avoiding UpdateData, and dialog control managment, for example.
joe
On Sat, 10 Nov 2007 07:29:02 -0800, Peter <Peter@discussions.microsoft.com> wrote:
I found several articles how to avoid flickering in dialog with help of
double buffer.
But all of them describes case when drawing functions like LineTo() and others
are used to draw on memory device context surface and then all bitmap is
copied from memory to window device context with BitBlt().
I need to avoid flickering in CView derived which contains several another
modeless dialogs placed on CView derived view. These child dialogs contains
many controls: buttons, checkboxes, list boxes etc...
My question is if it is possible to use double buffer technique also in
this case ?
If yes, where can I found some example, doc or links ?
Thx !
Peter
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm