CRichEditCtrl Flickring
-
Hi, I am using CRichEditCtrl. I need to add percentage in a loop at end of text. Every time I need to call GetWindowText() and append text and again SetWindowText(), but due to this I am getting flickring. How can I add only a single line og text in CRichEditCtrl so that I can avoid flickring.
-
Hi, I am using CRichEditCtrl. I need to add percentage in a loop at end of text. Every time I need to call GetWindowText() and append text and again SetWindowText(), but due to this I am getting flickring. How can I add only a single line og text in CRichEditCtrl so that I can avoid flickring.
How about adding a CString member variable[^] for your CRichEditCtrl and updating the data using UpdateData[^]
-
Hi, I am using CRichEditCtrl. I need to add percentage in a loop at end of text. Every time I need to call GetWindowText() and append text and again SetWindowText(), but due to this I am getting flickring. How can I add only a single line og text in CRichEditCtrl so that I can avoid flickring.
Do a flicker-free drawing using MFC methods Do a flicker-free drawing using MFC methods[^] Flicker Free Drawing In MFC Flicker Free Drawing In MFC[^] Flicker free drawing using memory DC http://www.codeguru.com/cpp/misc/misc/flickerfreedrawing/article.php/c389[^]
-
Hi, I am using CRichEditCtrl. I need to add percentage in a loop at end of text. Every time I need to call GetWindowText() and append text and again SetWindowText(), but due to this I am getting flickring. How can I add only a single line og text in CRichEditCtrl so that I can avoid flickring.
Don't know how much it would flicker, but try using CRichEditCtrl::SetSel[^] and CRichEditCtrl::ReplaceSel[^] to change only the part of the text you want. You might try combining it with CWnd::SetRedraw[^] and CWnd::RedrawWindow[^] to have it redraw itself only once after the text has been changed.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<
-
Don't know how much it would flicker, but try using CRichEditCtrl::SetSel[^] and CRichEditCtrl::ReplaceSel[^] to change only the part of the text you want. You might try combining it with CWnd::SetRedraw[^] and CWnd::RedrawWindow[^] to have it redraw itself only once after the text has been changed.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<