!!!请教:如何实现象mfc wizard类型的界面?

faroceanman 2005-02-28 09:12:56
请教大侠,如何实现象mfc wizard类型的界面,即点击界面上的选项能出现不同的界面。
...全文
116 11 打赏 收藏 转发到动态 举报
写回复
用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();
}
}

7,540

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 VC.NET
社区管理员
  • VC.NET社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧