CDialog上建立View的方法
来源:互联网 发布:ubuntu安装net snmp 编辑:程序博客网 时间:2024/06/05 11:37
OnInitDialog()
{
CDialog:;OnInitDialog();
CRect rectWindows;
GetWinodwRect(&rectWindows);
CRuntimeClass *pViewClass=RUNTIME_CLASS(CXXXView);
CCreateContext *pContext=new CCreateContext;
pContext->m_pCurrentDoc=NULL;
pContext->m_pCurrentFrame=NULL;
pContext->m_pLastView=NULL;
pContext->m_pNewDocTemplate=NULL;
pContext->m_pNewViewClass=pViewClass;
CWnd *pWnd=DYNAMIC_DOWNCAST(CWnd,pviewClass->CreateObject());
pWnd->Create(NULL,NULL,AFX_WS_DEFAULT_VIEW,CRect(0,0,0,0),this,pContext);
delete pContext;
CXXXView *pView=DYUNAMIC_DOWNCAST(CXXXView,pWnd);
. //..............
}
来源: <http://www.cppblog.com/finehai/archive/2009/07/20/90586.html>
0 0
- CDialog上建立View的方法
- CDialog的new方法
- google code上建立项目的方法
- google code上建立项目的方法
- 在GitHub上建立个人主页的方法
- 关于Child风格的CDialog上CListCtrl, 在CDialog最小化或者有窗口遮挡后CListCtrl无法刷新的问题
- CDialog dlg; 和 CDialog *pDlg;的区别
- CDialog上使用CToolBar+CReBar
- CDialog类的成员
- CDialog里面的Webkit
- CDialog的WM_CRETAE
- CDialog的使用
- CDialog 的一些心得
- CDialog
- CDialog
- CDialog
- 在视图上建立触发器的方法详解
- 在视图上建立触发器的方法详解
- JavaScript中的作用域和作用域链(二)
- Error creating index admin.system.version: 13 err: "not authorized to create index on admin.system.v
- java回调及匿名内部类实现
- 开源工具
- final、abstract、interface
- CDialog上建立View的方法
- 有道词典
- Linux 系统中用户切换
- VSFTP 登陆很慢的解决方案
- getHibernateTemplate().find java.lang.NullPointerException
- cordic算法的总结和verilog代码的编写
- Leetcode|Candy
- Android中Application类用法
- iOS ARC MRC情况下重写setter getter方法