home *** CD-ROM | disk | FTP | other *** search
- /////////////////////////////////////////////////////////////////////////////
- //
- // File : SettingsDlg.cpp
- // Project : MsgTrace
- // Component : MsgTracer
- //---------------------------------------------------------------------------
- // Description : settings dialog for MsgTracer
- //
- /////////////////////////////////////////////////////////////////////////////
- //
- // SourceSafe Strings. Do not change.
- //---------------------------------------------------------------------------
- // $Author: jeskes $
- // $Date: $
- // $Revision: $
- //
- /////////////////////////////////////////////////////////////////////////////
-
- #include "stdafx.h"
- #include "MsgTracerApp.h"
- #include "SettingsDlg.h"
-
- /////////////////////////////////////////////////////////////////////////////
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CSettingsDlg
- /////////////////////////////////////////////////////////////////////////////
-
- BEGIN_MESSAGE_MAP(CSettingsDlg, CDialog)
- //{{AFX_MSG_MAP(CSettingsDlg)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CSettingsDlg: construction
- /////////////////////////////////////////////////////////////////////////////
-
- CSettingsDlg::CSettingsDlg(CWnd* pParent ) : CDialog( IDD, pParent )
- {
- //{{AFX_DATA_INIT(CSettingsDlg)
- m_bAllowAutoAttach = FALSE;
- m_bShowOnStartup = FALSE;
- m_nTimeoutWaitForDebugEvent = 0;
- m_nBufferedLines = 0;
- //}}AFX_DATA_INIT
- }
-
- /////////////////////////////////////////////////////////////////////////////
-
- void CSettingsDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CSettingsDlg)
- DDX_Control(pDX, IDC_TIMEOUT_WAIT_FOR_DEBUG_EVENT_SPIN, m_ctlWaitForDebugEventSpin);
- DDX_Check(pDX, IDC_ALLOW_AUTOATTACH, m_bAllowAutoAttach);
- DDX_Check(pDX, IDC_SHOW_ON_STARTUP, m_bShowOnStartup);
- DDX_Text(pDX, IDC_TIMEOUT_WAIT_FOR_DEBUG_EVENT, m_nTimeoutWaitForDebugEvent);
- DDV_MinMaxUInt(pDX, m_nTimeoutWaitForDebugEvent, 0, 10000);
- DDX_Control(pDX, IDC_BUFFERED_LINES_SPIN, m_ctlBufferedLinesSpin);
- DDX_Text(pDX, IDC_BUFFERED_LINES, m_nBufferedLines);
- DDV_MinMaxUInt(pDX, m_nBufferedLines, 100, 5000);
- //}}AFX_DATA_MAP
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CSettingsDlg: message handlers
- /////////////////////////////////////////////////////////////////////////////
-
- BOOL CSettingsDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
-
- m_ctlWaitForDebugEventSpin.SetRange( 0, 10000 );
- m_ctlBufferedLinesSpin.SetRange( 100, 5000 );
-
- return( TRUE );
- }
-