标签:style class blog code color get
MFC 判断子窗体是否已经打开,避免重复创建------解决方案--------------------
********************************************************
******************自己测试通过解决方案*********************
static CDlgResetAlarmInfo *p_DlgResetAlarmInfo = new CDlgResetAlarmInfo;
HWND hWnd = p_DlgResetAlarmInfo->GetSafeHwnd();
if(IsWindow(hWnd))
{
p_DlgResetAlarmInfo->ShowWindow(SW_SHOW);
}
else
{
p_DlgResetAlarmInfo->Create(CDlgResetAlarmInfo::IDD,CWnd::FromHandle(a_pTrend->GetSafeHwnd()));
p_DlgResetAlarmInfo->ShowWindow(SW_SHOW);
}**********************没有问题***************************MFC 判断子窗体是不是已经打开,避免重复创建,布布扣,bubuko.com
标签:style class blog code color get
原文地址:http://blog.csdn.net/ghevinn/article/details/29560425