社区
VC.NET
帖子详情
!!!请教:如何实现象mfc wizard类型的界面?
faroceanman
2005-02-28 09:12:56
请教大侠,如何实现象mfc wizard类型的界面,即点击界面上的选项能出现不同的界面。
...全文
150
11
打赏
收藏
!!!请教:如何实现象mfc wizard类型的界面?
请教大侠,如何实现象mfc wizard类型的界面,即点击界面上的选项能出现不同的界面。
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
用AI写文章
11 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
faroceanman
2005-03-21
打赏
举报
回复
解决了!
sky
2005-03-14
打赏
举报
回复
用tabctrl控件
faroceanman
2005-03-10
打赏
举报
回复
up
Kudeet
2005-03-10
打赏
举报
回复
www.codeproject.com/property
faroceanman
2005-03-07
打赏
举报
回复
up,哪位大侠支持一下
tudou614
2005-03-05
打赏
举报
回复
MARK
faroceanman
2005-03-04
打赏
举报
回复
可能是我描述的不清楚,大家打开mfc wizard后,wizard就会要你选择“应用程序类型”“数据库支持”等,我所要的效果就是这样,点击左侧的选项,可以出现不同的界面操作。
faroceanman
2005-03-04
打赏
举报
回复
.NET上用vc++实现
faroceanman
2005-03-04
打赏
举报
回复
我是想在.NET上实现,我不需要next到下一个界面,只需要象在mfc wizard 中一样,选择左侧的选项,出现不同的界面供我操作。
灿爸.
2005-02-28
打赏
举报
回复
你要好好努力呀~
路漫漫,其修远兮,吾将上下而求索~
灿爸.
2005-02-28
打赏
举报
回复
namespace CapabilityPlus
{
/// <summary>
/// 返回窗体
/// </summary>
public class FrmBack : System.Windows.Forms.Form
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public FrmBack()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.Size = new System.Drawing.Size(300,300);
this.Text = "FrmBack";
}
#endregion
}
}
namespace CapabilityPlus
{
/// <summary>
/// 下一步窗体
/// </summary>
public class FrmNext : System.Windows.Forms.Form
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public FrmNext()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.Size = new System.Drawing.Size(300,300);
this.Text = "FrmNext";
}
#endregion
}
}
namespace CapabilityPlus
{
/// <summary>
/// 向导窗体
/// </summary>
public class wizard : System.Windows.Forms.Form
{
private System.Windows.Forms.Button btnNext;
private System.Windows.Forms.Button btnBack;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public wizard()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.btnNext = new System.Windows.Forms.Button();
this.btnBack = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// btnNext
//
this.btnNext.Location = new System.Drawing.Point(0, 8);
this.btnNext.Name = "btnNext";
this.btnNext.TabIndex = 0;
this.btnNext.Text = "Next";
this.btnNext.Click += new System.EventHandler(this.btnNext_Click);
//
// btnBack
//
this.btnBack.Location = new System.Drawing.Point(0, 48);
this.btnBack.Name = "btnBack";
this.btnBack.TabIndex = 1;
this.btnBack.Text = "Back";
this.btnBack.Click += new System.EventHandler(this.btnBack_Click);
//
// wizard
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(552, 173);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.btnBack,
this.btnNext});
this.Name = "wizard";
this.Text = "wizard";
this.ResumeLayout(false);
}
#endregion
private void btnNext_Click(object sender, System.EventArgs e)
{
//上一步
FrmBack back = new FrmBack();
back.ShowDialog();
}
private void btnBack_Click(object sender, System.EventArgs e)
{
//下一步
FrmNext next = new FrmNext();
next.ShowDialog();
}
}
ObjectARX
MFC
Class
Wizard
中DialogID创建失败
刚开始用的是CAD2017+VS2015+ARX2017,在创建类ObjectARX,
MFC
Support Class
Wizard
时DialogID无法显示因为如果无法有基类的话,必须要手动创建,感觉会很麻烦,所以在网上找了很多资料去解决这个问题,在AUTODESK官网论坛上搜到的这些问题是解决ARX2017,2016,2015版本不能创建
mfc
wizard
的,链接如下:https://fo...
C#
Wizard
功能
实
现
原地址:http://www.codeguru.com/csharp/csharp/cs_controls/
wizard
s/article.php/c4799/A-Reusable-
Wizard
-Component.htm 目标 1、以类似
MFC
的方式创建
Wizard
2、用类似设计对话框的方式设计每一页 这篇文章提供了两个类用于创建
Wizard
,另外有两个类用于创建Wizar
MFC
导航
界面
参考: http://blog.csdn.net/system14/article/details/9620999 http://blog.csdn.net/foreverhuylee/article/details/23450639 http://bbs.csdn.net/topics/50029048 CPropertyPage 是一个从CDialog派生而
vc
wizard
1
实
现
wizard
的NEXT按钮在一开始时是灰的,当属性页上的某些编辑控件有内容后才使能NEXT按钮 class CMyPropertyPage1 : public CPropertyPage { ... public: BOOL OnSetActive();//重载 ... } //
实
现文件 #i
MFC
对话框控件和变量
类型
You can use the Add Member Variable
Wizard
to add a member variable to a dialog box control created using
MFC
.The type of control for which you add the member variable determines the options that appea
VC.NET
7,538
社区成员
27,670
社区内容
发帖
与我相关
我的任务
VC.NET
.NET技术 VC.NET
复制链接
扫一扫
分享
社区描述
.NET技术 VC.NET
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章