/设置布而参数法
void CBPCALLView::OnSearchDxdn()
{
// TODO: Add your command handler code here
if (!Isdxdn)
{
dxdn=new CFormDXDN(this);
dxdn->Create(IDD_FORM_DXDN);
dxdn->ShowWindow(SW_RESTORE);
Isdxdn = TRUE;
}
else
{
//dxdn->CenterWindow();
dxdn->BringWindowToTop();
dxdn->ShowWindow(SW_RESTORE);
}
/*句柄方式解决
HWND hwnd=::FindWindow(NULL,"对象档案查询");
if (hwnd)
{
dxdn->BringWindowToTop();
dxdn->ShowWindow(SW_RESTORE);
}
else
{
dxdn=new CFormDXDN(this);
dxdn->Create(IDD_FORM_DXDN);
dxdn->ShowWindow(SW_RESTORE);
}
*/
}
本文地址:http://com.8s8s.com/it/it2921.htm