serverstart/src/serverstartdlg.cpp
//--------------------------------------------------------------------------------
// Callback runs when user push "Browse" button and want to select new Pdf file.
//--------------------------------------------------------------------------------
Callback runs when user push "Browse" button and want to select new Pdf file.
Callback runs when user push " Browse " button and want to select new Pdf file .
void CServerStartDlg::OnBrowsePdf()  {
CFileDialog openDlg(TRUE,"prefs","default",OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
					"Discover Project Definition (*.pdf) |*.pdf||",
					this);
   if(openDlg.DoModal()==IDOK) {
	   CString path;
	   path=openDlg.GetPathName();
	   m_PdfEdit.SetWindowText(path);
	   m_SaveButton.EnableWindow(TRUE);
   }
}
void CServerStartDlg :: OnBrowsePdf ( ) { CFileDialog openDlg ( TRUE , " " , " " , OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT , " " , this ) ; if ( openDlg . DoModal ( ) == IDOK ) { CString path ; path = openDlg . GetPathName ( ) ; m_PdfEdit . SetWindowText ( path ) ; m_SaveButton . EnableWindow ( TRUE ) ; } }
Callback runs when user push "Browse" button and want to select new Pdf file.
Callback runs when user push " Browse " button and want to select new Pdf file .