Set it to TRUE to construct a File Open dialog box. Set it to FALSE to construct a File Save As dialog box. void CCompFileDlg::OnDirbrowser() { // TODO: Add your control notification handler code here CFileDialog fileDialog(TRUE); if (fi
C***Dialog* pWnd= (C***Dialog*)FromHandle(hWnd); //由句柄得到对话框的对象指针 pWnd->xxx( ); //调用C***Dialog中的函数xxx(); 通过窗口类函数:CWnd *GetWindow获得窗口指针,pWnd->m_hWnd(The handle of the Windows window attached to this CW