Eddie
2005-05-09 15:45:47 UTC
Hi,
I'm having problems trying to update the contents a CStatic control
that exists in a SDI application. Whenever I try to update the control,
the new text appears to sit on top of the existing text. It seems that
the control does not get refreshed after the call to SetWindowText(). I
have tried calling CStatic::Invalidate() and CStatic::RedrawWindow()
directly but nothing seems to work.
My only solution is to call CView::Invalidate() every couple of
seconds, but this causes a very anoying flicker. Here is the call to
CStatic::Create(). Maybe I'm missing something? Any help would be
appreciated.
VERIFY(m_LoadTitleTxt.Create(szTemp, WS_CHILD | WS_VISIBLE,
CRect(10,10,130,30), this));
Thanks
Eddie.
I'm having problems trying to update the contents a CStatic control
that exists in a SDI application. Whenever I try to update the control,
the new text appears to sit on top of the existing text. It seems that
the control does not get refreshed after the call to SetWindowText(). I
have tried calling CStatic::Invalidate() and CStatic::RedrawWindow()
directly but nothing seems to work.
My only solution is to call CView::Invalidate() every couple of
seconds, but this causes a very anoying flicker. Here is the call to
CStatic::Create(). Maybe I'm missing something? Any help would be
appreciated.
VERIFY(m_LoadTitleTxt.Create(szTemp, WS_CHILD | WS_VISIBLE,
CRect(10,10,130,30), this));
Thanks
Eddie.