在对话框类MFC程序中使用RichEdit

在对话框类MFC程序中加入RichEdit后对话框会无法显示,只需在InitInstance()中调用AfxInitRichEdit( )在运行时初始化RichEdit即可。
MSDN描述如下:

AfxInitRichEdit
BOOL AFXAPI AfxInitRichEdit( );

Remarks

Call this function to initialize the rich edit control for the application. It will also initialize the common controls library, if the library hasn’t already been initialized for the process. If you use the rich edit control directly from your MFC application, you should call this function to assure that MFC has properly initialized the rich edit control runtime. If you use rich edit via CRichEditCtrl, CRichEditView, or CRichEditDoc, you don’t need to call this function.

posted on 2008-08-29 15:44 FongLuo 阅读(1001) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


<2016年7月>
262728293012
3456789
10111213141516
17181920212223
24252627282930
31123456

导航

常用链接

留言簿

随笔分类(11)

随笔档案(79)

文章档案(1)

收藏夹(38)

学习网站

一般网站

最新随笔

搜索

积分与排名

最新评论

阅读排行榜