if (::IsWindow(m_bioFeedBackTrainDlg.GetSafeHwnd()) == false)
{
m_bioFeedBackTrainDlg.Create(IDD_BIOFEEDBACK_TRAIN);
m_bioFeedBackTrainDlg.ShowWindow(SW_SHOW);
}
else
{
m_bioFeedBackTrainDlg.ShowWindow(SW_SHOW);
}
1 用IsWindow配合GetSafeWnd来判断窗口此时是否存在. 另外就是如何显示一个非模态对话框了.