CWnd* pWnd = CWnd::FromHandle(_hWnd);
_cstepdlg = new CStepList(pWnd);
_cstepdlg->m_phWND=_hWnd; 
if(_cstepdlg)
{
_cstepdlg->Create(IDD_LISTSTEP);
CRect  rc(rcClient),rcDlg;
int max=GetSystemMetrics(SM_CXFULLSCREEN);
pWnd->ClientToScreen(&rc);
_cstepdlg->GetWindowRect(&rcDlg);
_cstepdlg->SetWindowPos(&(CWnd::wndTopMost),rc.right+(max-rc.right-rcDlg.Width())/2,rc.top-4,/*0,0,*/rcDlg.Width(),rcDlg.Height(),SWP_NOSIZE|SWP_NOZORDER);
_cstepdlg->ShowWindow(SW_SHOW);
}
为什么CStepList对话框只出现一下就消失了,我查了没有地方把它隐藏啊!
是不是我这儿写错了.