home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / MSGTRACE.ZIP / MyProjects / MsgTrace / MsgTracer / SettingsDlg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-30  |  2.7 KB  |  83 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // File        : SettingsDlg.cpp
  4. // Project     : MsgTrace
  5. // Component   : MsgTracer
  6. //---------------------------------------------------------------------------
  7. // Description : settings dialog for MsgTracer
  8. //
  9. /////////////////////////////////////////////////////////////////////////////
  10. //
  11. // SourceSafe Strings. Do not change.
  12. //---------------------------------------------------------------------------
  13. // $Author: jeskes $
  14. // $Date: $
  15. // $Revision: $
  16. //
  17. /////////////////////////////////////////////////////////////////////////////
  18.  
  19. #include "stdafx.h"
  20. #include "MsgTracerApp.h"
  21. #include "SettingsDlg.h"
  22.  
  23. /////////////////////////////////////////////////////////////////////////////
  24. #ifdef _DEBUG
  25. #define new DEBUG_NEW
  26. #undef THIS_FILE
  27. static char THIS_FILE[] = __FILE__;
  28. #endif
  29.  
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CSettingsDlg 
  32. /////////////////////////////////////////////////////////////////////////////
  33.  
  34. BEGIN_MESSAGE_MAP(CSettingsDlg, CDialog)
  35.     //{{AFX_MSG_MAP(CSettingsDlg)
  36.     //}}AFX_MSG_MAP
  37. END_MESSAGE_MAP()
  38.  
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CSettingsDlg: construction
  41. /////////////////////////////////////////////////////////////////////////////
  42.  
  43. CSettingsDlg::CSettingsDlg(CWnd* pParent ) : CDialog( IDD, pParent )
  44. {
  45.     //{{AFX_DATA_INIT(CSettingsDlg)
  46.     m_bAllowAutoAttach = FALSE;
  47.     m_bShowOnStartup = FALSE;
  48.     m_nTimeoutWaitForDebugEvent = 0;
  49.     m_nBufferedLines = 0;
  50.     //}}AFX_DATA_INIT
  51. }
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54.  
  55. void CSettingsDlg::DoDataExchange(CDataExchange* pDX)
  56. {
  57.     CDialog::DoDataExchange(pDX);
  58.     //{{AFX_DATA_MAP(CSettingsDlg)
  59.     DDX_Control(pDX, IDC_TIMEOUT_WAIT_FOR_DEBUG_EVENT_SPIN, m_ctlWaitForDebugEventSpin);
  60.     DDX_Check(pDX, IDC_ALLOW_AUTOATTACH, m_bAllowAutoAttach);
  61.     DDX_Check(pDX, IDC_SHOW_ON_STARTUP, m_bShowOnStartup);
  62.     DDX_Text(pDX, IDC_TIMEOUT_WAIT_FOR_DEBUG_EVENT, m_nTimeoutWaitForDebugEvent);
  63.     DDV_MinMaxUInt(pDX, m_nTimeoutWaitForDebugEvent, 0, 10000);
  64.     DDX_Control(pDX, IDC_BUFFERED_LINES_SPIN, m_ctlBufferedLinesSpin);
  65.     DDX_Text(pDX, IDC_BUFFERED_LINES, m_nBufferedLines);
  66.     DDV_MinMaxUInt(pDX, m_nBufferedLines, 100, 5000);
  67.     //}}AFX_DATA_MAP
  68. }
  69.  
  70. /////////////////////////////////////////////////////////////////////////////
  71. // CSettingsDlg: message handlers
  72. /////////////////////////////////////////////////////////////////////////////
  73.  
  74. BOOL CSettingsDlg::OnInitDialog() 
  75. {
  76.     CDialog::OnInitDialog();
  77.     
  78.     m_ctlWaitForDebugEventSpin.SetRange( 0, 10000 );
  79.     m_ctlBufferedLinesSpin.SetRange( 100, 5000 );
  80.  
  81.     return( TRUE );
  82. }
  83.