HexEdit/HexEdit.cpp
void CHexEditApp::display_options(int display_page /* = -1 */, BOOL must_show_page /*=FALSE*/)
{
	// Construct property sheet + its pages
	COptSheet optSheet(_T("HexEdit Options"), display_page, must_show_page);

	// Load current settings into the property sheet
	get_options(optSheet.val_);

	optSheet.m_psh.dwFlags &= ~(PSH_HASHELP);      // Turn off help button
	optSheet.DoModal();
	// Note: updating the options in response to DoModal returning IDOK is
	// not a good idea as then the Apply button does nothing.
}
// Invoke the options dialog
// Param "display_page" indicates which page we want to show
// Param "must_show_page" means to force showing of the page

Invoke the options dialog
Param "display_page" indicates which page we want to show
Param "must_show_page" means to force showing of the page
Invoke the options dialog Param " display_page " indicates which page we want to show Param " must_show_page " means to force showing of the page
void CHexEditApp::display_options(int display_page , BOOL must_show_page )
{
	COptSheet optSheet(_T("HexEdit Options"), display_page, must_show_page);
	get_options(optSheet.val_);
	optSheet.m_psh.dwFlags &= ~(PSH_HASHELP);      
	optSheet.DoModal();
}
void CHexEditApp :: display_options ( int display_page , BOOL must_show_page ) { COptSheet optSheet ( _T ( " " ) , display_page , must_show_page ) ; get_options ( optSheet . val_ ) ; optSheet . m_psh . dwFlags &= ~ ( PSH_HASHELP ) ; optSheet . DoModal ( ) ; }
Invoke the options dialog
Param "display_page" indicates which page we want to show
Param "must_show_page" means to force showing of the page
Invoke the options dialog Param " display_page " indicates which page we want to show Param " must_show_page " means to force showing of the page
/* = -1 */ /*=FALSE*/ // Construct property sheet + its pages
 // Load current settings into the property sheet
 // Turn off help button
 // Note: updating the options in response to DoModal returning IDOK is
 // not a good idea as then the Apply button does nothing.
