Thanks
-Jerry
how about:
mRichEditCtrl.SetWindowText(_T(""));
AliR.
"scdong" <shichon...@gmail.com> wrote in message
news:251cbf87-e5f7-49db...@x16g2000prn.googlegroups.com...
This works for me:
m_REventDisplay.SetSel(0, -1);
m_REventDisplay.Clear();
When handling the EN_PROTECTED message (which is sent to the control's parent unless it's reflected back to the control), if you return FALSE, the action is permitted, despite the protected state; returning TRUE dumps the action and the computer beeps.
Hope this helps. Had me for a while.
>> On Monday, August 18, 2008 12:35 PM AliR \(VC++ MVP\) wrote:
>> It works fine when I do it!
>>
>> how about:
>> mRichEditCtrl.SetWindowText(_T(""));
>>
>> AliR.
>>> On Tuesday, August 19, 2008 6:51 AM BobF wrote:
>>> scdong wrote:
>>>
>>> This works for me:
>>>
>>> m_REventDisplay.SetSel(0, -1);
>>> m_REventDisplay.Clear();
>>>> On Friday, August 22, 2008 12:46 AM scdong wrote:
>>>> I have debugged the code, the window text actually has been set to
>>>> empty, but it doesn't refresh the UI. So when i want to outout
>>>> something in rich edit control, the new output is followed by previous
>>>> output. All I want is to clear the UI, so i can output in the start of
>>>> the client area of rich edit control.
>>>> Submitted via EggHeadCafe
>>>> SharePoint Tip / Thought of the Day WebPart
>>>> http://www.eggheadcafe.com/tutorials/aspnet/14280ff8-3c9f-46bd-8214-9267e613c8ec/sharepoint-tip--thought-of-the-day-webpart.aspx