Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.0 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: ViewOptionsDlg.cpp
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Source file of ViewOptionsDlg.cpp
  13. //----------------------------------------------------------------------------
  14. // ViewOptionsDlg.cpp : implementation file
  15. //
  16. #include "stdafx.h"
  17. #include "chicago.h"
  18. #include "ViewOptionsDlg.h"
  19. #include "..\..\LgLib\Version.h"
  20. #ifdef _DEBUG
  21. #define new DEBUG_NEW
  22. #undef THIS_FILE
  23. static char THIS_FILE[] = __FILE__;
  24. #endif
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CViewOptionsDlg dialog
  27. CViewOptionsDlg::CViewOptionsDlg(CWnd* pParent /*=NULL*/)
  28. : CDialog(CViewOptionsDlg::IDD, pParent)
  29. {
  30. //{{AFX_DATA_INIT(CViewOptionsDlg)
  31. m_nZoomFactor = 0;
  32. //}}AFX_DATA_INIT
  33. LGLOG( LOG_LEVEL_MEDIUM, LOG_TYPE_INFO, this, _T("CViewOptionsDlg::CViewOptionsDlg") );
  34. }
  35. void CViewOptionsDlg::DoDataExchange(CDataExchange* pDX)
  36. {
  37. CDialog::DoDataExchange(pDX);
  38. //{{AFX_DATA_MAP(CViewOptionsDlg)
  39. DDX_Control(pDX, IDC_SPIN_ZOOM_FACTOR, m_spinZoomFactor);
  40. DDX_Text(pDX, IDC_EDIT_ZOOM_FACTOR, m_nZoomFactor);
  41. DDV_MinMaxInt(pDX, m_nZoomFactor, 1, 30);
  42. //}}AFX_DATA_MAP
  43. }
  44. BEGIN_MESSAGE_MAP(CViewOptionsDlg, CDialog)
  45. //{{AFX_MSG_MAP(CViewOptionsDlg)
  46. //}}AFX_MSG_MAP
  47. END_MESSAGE_MAP()
  48. /////////////////////////////////////////////////////////////////////////////
  49. // CViewOptionsDlg message handlers
  50. void CViewOptionsDlg::OnOK()
  51. {
  52. UpdateData( TRUE );
  53. m_ZoomFactor = (double)m_nZoomFactor;
  54. CDialog::OnOK();
  55. }
  56. BOOL CViewOptionsDlg::OnInitDialog()
  57. {
  58. CDialog::OnInitDialog();
  59. m_spinZoomFactor.SetRange( 1, 30 );
  60. return TRUE; // return TRUE unless you set the focus to a control
  61. // EXCEPTION: OCX Property Pages should return FALSE
  62. }