mfc窗口跳转的两种方法的区别

来源:互联网 发布:淘宝p图一般多少钱啊 编辑:程序博客网 时间:2024/06/07 00:37
#include "InsertData1.h"//必须包含此头文件,格式为  '建立的类名.h'void CTLADlg::OnButton2() {    // TODO: Add your control notification handler code here    InsertData1 page1;    page1.DoModal();                     //方法一    InsertData1 *pwnd=new InsertData1(this);    pwnd->Create(IDD_DIALOG1,this);    pwnd->ShowWindow(1);                 //方法二‘}

在建立类向导页面对新建立的DIALOG1建立类InsertData1
方法一建立的窗口之后无法选中之前的窗口。
方法二建立的窗口还可选中之前的窗口,但是无法将之前的窗口在屏幕最前。

原创粉丝点击