就是一个一般的对话框,不过已经有了很多子对话框和很多控件了,大概40多个吧
(加起来)。
主对话框有几个按钮和一个列表控件。
运行时对话框还没有出现就报错!
debug中是说一个:
HWND CDataExchange::PrepareCtrl(int nIDC)
{
ASSERT(nIDC != 0);
ASSERT(nIDC != -1); // not allowed
HWND hWndCtrl;
m_pDlgWnd->GetDlgItem(nIDC, &hWndCtrl);
if (hWndCtrl == NULL)
{
TRACE1("Error: no data exchange control with 0x
                  ID 0x%04X.\n", nIDC);
****** ASSERT(FALSE); *******就这里!
AfxThrowNotSupportedException();
}
m_hWndLastControl = hWndCtrl;
m_bEditLastControl = FALSE; // not an edit item by default
ASSERT(hWndCtrl != NULL);   // never return NULL handle
return hWndCtrl;
}