mRichEditCtrl.SetSel(-1, -1);
#if UNICODE
SETTEXTEX SetTxtEx = {0,};
SetTxtEx.flags = ST_SELECTION;
SetTxtEx.codepage = 1200;
BOOL bRet = ::SendMessage(mRichEditCtrl.GetSafeHwnd(), EM_SETTEXTEX, (WPARAM)&SetTxtEx, (LPARAM)Message.GetBuffer());
ASSERT(bRet);
#else
mRichEditCtrl.ReplaceSel( (LPCTSTR)Message.GetBuffer());
#endif
Message.ReleaseBuffer();
//The code page used to translate the text to Unicode. If codepage is 1200 (Unicode code page), no translation is done. If //codepage is CP_ACP, the system code page is used.