Re: MFC UpdateWindow()???
You shouldn't need it. Show your real code. Is your SetWindowText call in a tight loop?
Re: MFC UpdateWindow()???
SetWindowText does not require a call to UpdateWindow() to show the updated content. CWnd itself take care of that and you no need to specify that explicitly.
Re: MFC UpdateWindow()???
Window is redrawn only when current message handler exits. Don't expect window to be redrawn on every loop iteration.
UpdateWindow is not required after SetWindowText.
Replace loop with timer, changing window text on every timer tick.
Re: MFC UpdateWindow()???
Quote:
Originally Posted by
Alex F
Replace loop with timer, changing window text on every timer tick.
I'm not following the thinking on that one.
Re: MFC UpdateWindow()???
Quote:
Originally Posted by
Alex F
Window is redrawn only when current message handler exits. Don't expect window to be redrawn on every loop iteration.
UpdateWindow is not required after SetWindowText.
Replace loop with timer, changing window text on every timer tick.
Using SetEventMask(GetEventMask()|ENM_UPDATE); fixed the problem, so directly after UpdateWindow() is called, the text gets displayed. But how would I do a timer tick method?? That seems more efficient.