CFormView,该怎么解决
CFormView
我继承了CFormView,在里面写了几个成员变量,想创建该对话框的时候初始化他们,请问应该怎么做啊?
CCreateContext context;
context.m_pCurrentDoc=NULL;
context.m_pCurrentFrame=this;
context.m_pLastView=NULL;
context.m_pNewDocTemplate=NULL;
context.m_pNewViewClass=RUNTIME_CLASS(CFormTestDlg);
CView * pView=(CView *)CreateView(&context);
------解决方案--------------------
初始化的代码放到OnInitialUpdate中
我继承了CFormView,在里面写了几个成员变量,想创建该对话框的时候初始化他们,请问应该怎么做啊?
CCreateContext context;
context.m_pCurrentDoc=NULL;
context.m_pCurrentFrame=this;
context.m_pLastView=NULL;
context.m_pNewDocTemplate=NULL;
context.m_pNewViewClass=RUNTIME_CLASS(CFormTestDlg);
CView * pView=(CView *)CreateView(&context);
------解决方案--------------------
初始化的代码放到OnInitialUpdate中