CLoadKeyDlg *dlg = new CLoadKeyDlg;
dlg->Create(IDD_LOADKEY_DLG, this );
dlg->showWindow(SW_NORMAL);
this->ShowWindow(SW_HIDE); // 隐藏主窗口
只需把第二句 this 改成 桌面窗口 即可
dlg->Create(IDD_LOADKEY_DLG, GetDesktopWindow() );
CLoadKeyDlg *dlg = new CLoadKeyDlg;
dlg->Create(IDD_LOADKEY_DLG, this );
dlg->showWindow(SW_NORMAL);
this->ShowWindow(SW_HIDE); // 隐藏主窗口
只需把第二句 this 改成 桌面窗口 即可
dlg->Create(IDD_LOADKEY_DLG, GetDesktopWindow() );