HexEdit/HexEditView.cpp
void CHexEditView::OnReadFile()
{
	CHexEditApp *aa = dynamic_cast<CHexEditApp *>(AfxGetApp());

	// Get name of file to read
	CHexFileDialog dlgFile("ReadFileDlg", HIDD_FILE_READ, TRUE, NULL, aa->current_read_,
						   OFN_HIDEREADONLY | OFN_SHOWHELP | OFN_FILEMUSTEXIST | OFN_NOCHANGEDIR | OFN_DONTADDTORECENT,
						   aa->GetCurrentFilters(), "Read", this);

	// Set up the title of the dialog
	dlgFile.m_ofn.lpstrTitle = "Insert File";

	if (dlgFile.DoModal() == IDOK)
	{
		aa->current_read_ = dlgFile.GetPathName();

		do_read(aa->current_read_);
	}
}
// Get file name, insert into document and select inserted bytes

Get file name, insert into document and select inserted bytes
Get file name insert into document and select inserted bytes
void CHexEditView::OnReadFile()
{
	CHexEditApp *aa = dynamic_cast<CHexEditApp *>(AfxGetApp());
	CHexFileDialog dlgFile("ReadFileDlg", HIDD_FILE_READ, TRUE, NULL, aa->current_read_,
						   OFN_HIDEREADONLY | OFN_SHOWHELP | OFN_FILEMUSTEXIST | OFN_NOCHANGEDIR | OFN_DONTADDTORECENT,
						   aa->GetCurrentFilters(), "Read", this);
	dlgFile.m_ofn.lpstrTitle = "Insert File";
	if (dlgFile.DoModal() == IDOK)
	{
		aa->current_read_ = dlgFile.GetPathName();
		do_read(aa->current_read_);
	}
}
void CHexEditView :: OnReadFile ( ) { CHexEditApp * aa = dynamic_cast < CHexEditApp * > ( AfxGetApp ( ) ) ; CHexFileDialog dlgFile ( " " , HIDD_FILE_READ , TRUE , NULL , aa -> current_read_ , OFN_HIDEREADONLY | OFN_SHOWHELP | OFN_FILEMUSTEXIST | OFN_NOCHANGEDIR | OFN_DONTADDTORECENT , aa -> GetCurrentFilters ( ) , " " , this ) ; dlgFile . m_ofn . lpstrTitle = " " ; if ( dlgFile . DoModal ( ) == IDOK ) { aa -> current_read_ = dlgFile . GetPathName ( ) ; do_read ( aa -> current_read_ ) ; } }
Get file name, insert into document and select inserted bytes
Get file name insert into document and select inserted bytes
// Get name of file to read
 // Set up the title of the dialog
