http://community.9cbs.net/expert/topic/3266/3266330.xml?temp=5.662173e-02
#include
1. definition:
Cricheditctrl m_richedit; hmodule m_hrichedit;
2. Finalconstruct () M_Hrichedit = :: loadLibrary (cricheditctrl :: getLibraryName ());
3. FinalRelease () {:: freeElibrary (m_hrichedit);}
4. In 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. Set text M_RichEdit.SetWindowText ("sssssssssssssss");