http://community.csdn.net/Expert/topic/3266/3266330.xml?temp=5.662173E-02
#include <atlctrls.h>
1。定义:
CRichEditCtrl m_RichEdit;
HMODULE m_hRichEdit;
2。FinalConstruct() 中
m_hRichEdit = ::LoadLibrary(CRichEditCtrl::GetLibraryName());
3。FinalRelease() 中
if (m_hRichEdit)
{
::FreeLibrary(m_hRichEdit);
}
4。OnCreate 中
m_RichEdit.Create(m_hWnd, rcDefault, NULL,
WS_VISIBLE | WS_CHILD | WS_VSCROLL
| ES_MULTILINE | WS_EX_CLIENTEDGE | ES_READONLY
,0,IDC_RICHEDIT);
5。设置文本
m_RichEdit.SetWindowText("ssssssssssssss");