static bool DoStackOrHistory( res_name_or_id dlg_id ) { gui_ctl_id resp; resp = CTL_STK_CANCEL; ResDlgOpen( &StkOrHistoryEvent, &resp, dlg_id ); switch( resp ) { case CTL_STK_CANCEL: _SwitchOn( SW_EXECUTE_ABORTED ); return( false ); case CTL_STK_YES: if( dlg_id == GUI_MAKEINTRESOURCE( DIALOG_STACK ) ) { LastStackPos(); } else { LastMachState(); } break; } return( true ); }
static bool DoStackOrHistory( int id ) { int resp; resp = CTL_STK_CANCEL; ResDlgOpen( &StkOrHistoryEvent, &resp, id ); switch( resp ) { case CTL_STK_CANCEL: _SwitchOn( SW_EXECUTE_ABORTED ); return( FALSE ); case CTL_STK_YES: if( id == DIALOG_STACK ) { LastStackPos(); } else { LastMachState(); } break; } return( TRUE ); }