Exemple #1
0
	void	OnFileSave( void ){
//		CFileSaveDlg	dlg;
		CFileOpenDlg	dlg;
		if( dlg.DoModal(m_hWnd) ){
			TString	str;
			dlg.GetFileName(str);

			SaveDumpText(str);
		}
	}
Exemple #2
0
	void	OnFileOpen( void ){
		CFileOpenDlg	dlg;
		if( dlg.DoModal(m_hWnd) ){
			TString	str;
			dlg.GetFileName(str);

			SetWindowText(str);

			///*CThread* pThread = */new CThread( new CDumpFileThread(str, m_wndList), true );
			//if( pThread ){
			//	pThread->Start();
			//}
		}
	}
void CDIP_ProgrammingDoc::OnFileOpen()
{
	// TODO: Add your command handler code here
	CFileDialog fileopen(true);
	CFileOpenDlg myDlg;

	if( fileopen.DoModal() == IDCANCEL )	//if user choose 'cancel'
		return ;

	CString filename = fileopen.GetPathName();	//get file name
	
	if(myDlg.DoModal() == IDCANCEL)	//if user choose 'cancel'
		return ;

	Image.m_BMPHeader.biWidth=Image.m_uiWidth=myDlg.FileOpenDlg_GetCol();	//get column size
	Image.m_BMPHeader.biHeight=Image.m_uiHeight=myDlg.FileOpenDlg_GetRow();	//get row size

	Image.MyClass_ReadFile(filename);	//read file

	UpdateAllViews(NULL);
}