DoModale()只能打开一个对话框
怎样实现VC做MFC时前一不后一不那样的功能?

解决方案 »

  1.   

    什么“前一不后一不那样的功能”你说清楚好不好!DoModale()就是具体的创建一个模式对话框。
      

  2.   

    用类CPropertySheet CPropertyPage,然后设置这个
    CPropertySheet::SetWizardMode
    void SetWizardMode( );ResCall this member function to establish a property page as a wizard. A key characteristic of a wizard property page is that the user navigates using Next or Finish, Back, and Cancel buttons instead of tabs. Call SetWizardMode before calling DoModal. After you call SetWizardMode, DoModal will return either ID_WIZFINISH (if the user closes with the Finish button) or IDCANCEL.SetWizardMode sets the PSF_WIZARD flag. ExampleCPropertySheet dlg;
    CPropertyPage page1, page2;dlg.AddPage(&page1);
    dlg.AddPage(&page2);
    dlg.SetWizardMode();
    dlg.DoModal();
      

  3.   

    “前一步后一步”吗?:)
    用CPropertySheet呀!