简体   繁体   English

如何在MFC中从一种形式移动到另一种形式

[英]how to move from one form to another in MFC

我正在使用MFC应用程序控件设计设置向导...如何通过单击click.plz从一种形式移动到另一种形式

This is kind of an indirect answer to your question -- its been a few years since I've done MFC. 这是对您的问题的间接答案-自从我完成MFC已有几年了。

Get your hands on a book called "MFC Internals" by Scot Wingo, George Shepherd and Dean McCrory (Amazon: http://www.amazon.ca/MFC-Internals-Microsoft-Foundation-Architecture/dp/0201407213 ). 由Scot Wingo,George Shepherd和Dean McCrory撰写的一本名为“ MFC Internals”的书(Amazon: http ://www.amazon.ca/MFC-Internals-Microsoft-Foundation-Architecture/dp/0201407213)。 Its kind of old (but so is MFC), but it does have the answers. 它有点旧(但MFC也是如此),但确实有答案。

I thought that MFC had a built-in class or set of classes for handling wizards. 我以为MFC有一个内置类或一组用于处理向导的类。 All you have to do is create the various pages of the wizard and the main class handles the rest. 您所要做的就是创建向导的各个页面,而主类负责其余的页面。

Anyway, get the book and go from there. 无论如何,拿起书,然后从那里去。

The MFC class kmontgom was thinking of is CPropertysheet . MFC类kmontgom想到的是CPropertysheet

To create a wizard-type dialog box, follow the same steps you would follow to create a standard property sheet, but call SetWizardMode before you call DoModal. 若要创建向导类型的对话框,请按照与创建标准属性表相同的步骤进行操作,但是在调用DoModal之前先调用SetWizardMode。 To enable the wizard buttons, call SetWizardButtons, using flags to customize their function and appearance. 要启用向导按钮,请调用SetWizardButtons,并使用标志来自定义其功能和外观。 To enable the Finish button, call SetFinishText after the user has taken action on the last page of the wizard. 要启用“完成”按钮,请在用户对向导的最后一页执行操作后调用SetFinishText。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM