在MFC中设计对话框 [英] Designing Dialogs in MFC

查看:87
本文介绍了在MFC中设计对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有2个问题:

1-如何制作类似安装程序的对话框,单击下一步按钮后,将在同一对话框中显示一些新控件?

2-一般来说,如何使用自己的样式和按钮等在MFC中制作图形形式?例如,请参见AVAST Anti-virus的以下屏幕截图:

http://www.techwhizz.com/wp-content/uploads/2009/11/Avast-screenshot.jpg

非常感谢.

Hi guys,
I have 2 questions:

1- How can I make dialogs like setup programs which after clicking next button it will be shown some new controls in the same dialog?

2- In general how can I make graphical forms in MFC with my own styles and button and so on? For example please see this screen shot from AVAST Anti-virus:

http://www.techwhizz.com/wp-content/uploads/2009/11/Avast-screenshot.jpg

Thank you so much.

推荐答案

文章 [ ^ ]给你一些想法.即使这些只是合适的搜索词.
This article[^] from here on Code Project might give you some ideas. Even if those are only suitable search terms.


安装程序仅是向导形式.我相信MFC已经有了一个向导对话框类(自从我做任何C ++以来已有4年了,所以内存很朦胧). Google是您的朋友.
Install programs are nothing more than Wizard forms. I believe that MFC already has a Wizard dialog class (it''s been 4 years since I did any C++, so the memory is hazy). Google is your friend.


嗨Reza,

1:请参阅MFC CPropertySheet和CPropertyPage [ ^ ]类和 CPropertySheet :: SetWizardMode() [大量的界面元素 [
Hi Reza,

1: See the MFC CPropertySheet and CPropertyPage[^] classes and the CPropertySheet::SetWizardMode()[^] member.

2: From Visual Studio 2008 SP1 a large set of interface elements[^] has been added to MFC. They can be used to compose something like your screenshot. Work ahead :)

cheers,
AR


这篇关于在MFC中设计对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆