//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 08/10/2003 // PROJECT: // SUBSYSTEM: // FILE: ViewOptionsDlg.cpp // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Source file of ViewOptionsDlg.cpp //---------------------------------------------------------------------------- // ViewOptionsDlg.cpp : implementation file // #include "stdafx.h" #include "chicago.h" #include "ViewOptionsDlg.h" #include "..\..\LgLib\Version.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CViewOptionsDlg dialog CViewOptionsDlg::CViewOptionsDlg(CWnd* pParent /*=NULL*/) : CDialog(CViewOptionsDlg::IDD, pParent) { //{{AFX_DATA_INIT(CViewOptionsDlg) m_nZoomFactor = 0; //}}AFX_DATA_INIT LGLOG( LOG_LEVEL_MEDIUM, LOG_TYPE_INFO, this, _T("CViewOptionsDlg::CViewOptionsDlg") ); } void CViewOptionsDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CViewOptionsDlg) DDX_Control(pDX, IDC_SPIN_ZOOM_FACTOR, m_spinZoomFactor); DDX_Text(pDX, IDC_EDIT_ZOOM_FACTOR, m_nZoomFactor); DDV_MinMaxInt(pDX, m_nZoomFactor, 1, 30); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CViewOptionsDlg, CDialog) //{{AFX_MSG_MAP(CViewOptionsDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CViewOptionsDlg message handlers void CViewOptionsDlg::OnOK() { UpdateData( TRUE ); m_ZoomFactor = (double)m_nZoomFactor; CDialog::OnOK(); } BOOL CViewOptionsDlg::OnInitDialog() { CDialog::OnInitDialog(); m_spinZoomFactor.SetRange( 1, 30 ); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }