请教高手

tomcat_jb 2002-03-04 10:55:27
那位同仁有向导制作的经验或者代码,可否共享一下,高分学习。
介绍介绍思路和经验也可以啊。多谢!

...全文
43 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
Rose2000 2002-03-05
  • 打赏
  • 举报
回复
咳,我一般回答完问题不再回来看,除了你给我分后我才看看,你知道现在改版后的短信功能么?点击Rose2000就打开一个短信功能。有什么问题你给我留言吧,然后讨论。OK?
Rose2000 2002-03-04
  • 打赏
  • 举报
回复
1.ResourceView中创建多个Dialog
2.为此对话框创建相关联的类,选择父类为CPropertyPage
3.创建个容纳Page的sheet,从CPropertySheet 派生
4.在sheet的派生类中创建Page的变量
5.在sheet的构造函数中AddPage(& page);

例子如下:
CPropertySheet dlg;
CPropertyPage page1, page2;

dlg.AddPage(&page1);
dlg.AddPage(&page2);
dlg.SetWizardMode();
dlg.DoModal();

shaohua 2002-03-04
  • 打赏
  • 举报
回复
ok,i can give you a sample!
itwxf@student.hunnu.edu.cn
public 2002-03-04
  • 打赏
  • 举报
回复
I have samples
give me your e_mail
tomcat_jb 2002-03-04
  • 打赏
  • 举报
回复
在线等待啊,各位帮帮忙啊。
public 2002-03-04
  • 打赏
  • 举报
回复
Construct(IDD_INTRO, 0)
为类CProperty 成员函数
CPropertyPage::Construct
void Construct( UINT nIDTemplate, UINT nIDCaption = 0 );
Parameters

nIDTemplate

ID of the template used for this page.

nIDCaption

ID of the name to be placed in the tab for this page. If 0, the name will be taken from the dialog template for this page.

lpszTemplateName

Contains a null-terminated string that is the name of a template resource.
Remarks

Call this member function to construct a CPropertyPage object. The object is displayed after all of the following conditions are met:

CWizard("Sample Wizard", this)
为CWizard为CPropertySheet派生类,其构造函数
CPropertySheet( LPCTSTR pszCaption, CWnd *pParentWnd = NULL, UINT iSelectPage = 0 );
Parameters

nIDCaption

ID of the caption to be used for the property sheet.

pParentWnd

Points to the parent window of the property sheet. If NULL, the parent window will be the main window of the application.

iSelectPage

The index of the page that will initially be on top. Default is the first page added to the sheet.

pszCaption

Points to a string containing the caption to be used for the property sheet. Cannot be NULL.

Remarks

Use this member function to construct a CPropertySheet object. To display the property sheet, call DoModal or Create. The string contained in the first parameter will be placed in the caption bar for the property sheet.





tomcat_jb 2002-03-04
  • 打赏
  • 举报
回复
to public:已经收到,正在研究
CWizard("Sample Wizard", this)
Construct(IDD_INTRO, 0)
请解释一下,在MSDN里面没有查到。多谢!
public 2002-03-04
  • 打赏
  • 举报
回复
收到了,请回信
public 2002-03-04
  • 打赏
  • 举报
回复
好了,发完了
tomcat_jb 2002-03-04
  • 打赏
  • 举报
回复
先给rose2000发20分,请public 和shaohua 发代码到我的信箱里面,不胜感激!
tomcat_jb 2002-03-04
  • 打赏
  • 举报
回复
Rose2000:您说的这个SHEET在那里添加?我看了你说的,是这样理解的,您看我理解的对不对:
1、按照向导要求的若干步骤,创建若干的对话框
2、创建容器SHEET
3、将若干的对话框放入容器内
4、将容器设置为WIZARD模式
这样在构造SHEET的时候就可以 以WIZARD的形式逐个按照对话框的顺序进行操作。是这个意思吗?如果那里有理解不对的地方请指出,多谢多谢。
tomcat_jb 2002-03-04
  • 打赏
  • 举报
回复
多谢各位了,我的信箱是jia_bin@263.net
多谢多谢:)

16,472

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

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