我這樣做老是出問題,執行後出錯,退出.
CWnd* pParentWnd=::AfxGetMainWnd();
m_RichEdit.SetWindowText("Enable");
m_RichEdit.Create(WS_CHILD|WS_VISIBLE|WS_BORDER|ES_MULTILINE,
   CRect(10,10,11,11), pParentWnd, IDC_RICHEDIT2);