最佳答案:在资源文件夹下面 dialog附近邮件单击 找到insert 选择dialog 点击new 然后在类向导里面 选择creat a new class 选择ok 并取名假设为 dialog 然后在你已建
在资源文件夹下面 dialog附近邮件单击 找到insert 选择dialog 点击new 然后在类向导里面 选择creat a new class 选择ok 并取名假设为 dialog 然后在你已建好的窗口上面插一个按钮 按钮的相应函数为 dialog *CreatServer=new dialog; CreatServer->DoModal(); 这是模态对话框 非模态的用函数 CDialog::creat()实现