设置窗口激活属性:窗口A->B->C,这里设置在C对话框显示时A和B都不能操作
LRESULT sindykTools::AttrPOIDlg::OnBatchCreateSubPointButton(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
// Dialog
BatchCreatSubPointDlg batchCreatDlg;
batchCreatDlg.initialize( poiRows );
CWindow fatherWindow = GetTopLevelParent();
fatherWindow.EnableWindow(FALSE);
batchCreatDlg.DoModal();
fatherWindow.EnableWindow(TRUE);
// ...
}