1,如果在对话框项目中加入了一个RichEdit控件,程序就不能运行,为什么2,看过文档后,我决定用代码创建RichEdit控件:
AfxInitRichEdit();
CRichEditCtrl myRichEdit;
bool b = myRichEdit.Create( ES_LEFT | ES_MULTILINE
|WS_VISIBLE |WS_CHILD | ES_WANTRETURN |
WS_VSCROLL , CRect(100,100,200,200),
(CWnd*)this, 1000 );
但运行后却没有出现RichEdit控件,请问问题出在哪里呢
AfxInitRichEdit();
CRichEditCtrl myRichEdit;
bool b = myRichEdit.Create( ES_LEFT | ES_MULTILINE
|WS_VISIBLE |WS_CHILD | ES_WANTRETURN |
WS_VSCROLL , CRect(100,100,200,200),
(CWnd*)this, 1000 );
但运行后却没有出现RichEdit控件,请问问题出在哪里呢
2、可能是你创建的位置不对
如果可以的话,可以将程序源代码发到:[email protected]
我帮你看看!注明帖子的URL!
如果使用VC7的话调用AfxEnableControlContainer()和AfxInitRichEdit2()
如果使用VC8的话……你还没转.Net?