use CDialog(), Create(IDD_MYDIALOG,...) and ShowWindow(...) together for a modeless dialog box use CDialog(UINT nIDTemplate) and DoModal() for a modal dialog
there is no such class CRichTextBox in MFC, but your problem is probably due to the fact that, the window associated with the object is not created yet, so you cannot send window message to it
还有,CRichTextBox test;
test.setText("test");
为什么不行啊?
help……
而DoModal时创建了窗口,你在此后ShowWindow应该就没有问题了