要做一个VC界面, 帮看看能不能这样做或是有什么更好的方法. 谢谢 整个界面是基于对话框的, 界面左边是一个树控件(CTreeCtrl), 上面有若干节点, 我希望在点选每个节点的时候, 界面右边都出现不同的阿哦预先设定好的对话框.我想知道这些对话框能不能用CPropertyPage和CPropertySheet结构来实现, 或是有更好的方法.谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以用CPropertyPage和CPropertySheet结构来实现。 用CView和CFrameWnd!CFrameWnd theFrame = new CMainFrame;CRuntimeClass* pNewViewClass = RUNTIME_CLASS(CView);就是说CMainFrame是CFrameWnd,然后你所说的出现预定的对话框就是CView!到时候做个切换就行了!象下面这样!CRuntimeClass* pNewViewClass;switch(供判断的标志,比方说树的节点){case:1 pNewViewClass = RUNTIME_CLASS(CView1);case:2 pNewViewClass = RUNTIME_CLASS(CView2);}// create the new viewCCreateContext context;context.m_pNewViewClass = pNewViewClass;context.m_pCurrentDoc = GetActiveDocument();CView* pNewView = STATIC_DOWNCAST(CView, CreateView(&context));if (pNewView != NULL){ // the new view is there, but invisible and not active... pNewView->ShowWindow(SW_SHOW); pNewView->OnInitialUpdate(); SetActiveView(pNewView); RecalcLayout(); pNewView->UpdateWindow();}记得销毁当前的CView!明白? www.51ui.cn 承接界面设计外包 IsDlgButtonChecked 的参数是啥子意思?函数是啥子功能 求知:使用ijl15l.dll进行多线程压缩怎么程序老是自动关闭? [急求]求数值方法中的拟牛顿法的C源程序 问个变量存储的问题 求汉字与拼音的对照表(有声调的最好) 请问:如何在状态栏中加入超链接? 好多天在潜水,散散分 函数参数以对象传递和引用传递的区别 为什么EndDialog()会出错? 难题,难,请兄弟帮我一把 关于CreateDialog的奇怪问题 如何让通过注册表写的环境变量立刻生效!
{
case:1
pNewViewClass = RUNTIME_CLASS(CView1);
case:2
pNewViewClass = RUNTIME_CLASS(CView2);
}
// create the new view
CCreateContext context;
context.m_pNewViewClass = pNewViewClass;
context.m_pCurrentDoc = GetActiveDocument();
CView* pNewView = STATIC_DOWNCAST(CView, CreateView(&context));if (pNewView != NULL)
{
// the new view is there, but invisible and not active...
pNewView->ShowWindow(SW_SHOW);
pNewView->OnInitialUpdate();
SetActiveView(pNewView);
RecalcLayout();
pNewView->UpdateWindow();}
记得销毁当前的CView!明白?