home *** CD-ROM | disk | FTP | other *** search
/ ftp.funduc.com / 2014.08.ftp.funduc.com.tar / ftp.funduc.com / fshedcode-072212.zip / OptionsDlg.cpp < prev    next >
C/C++ Source or Header  |  2010-09-13  |  4KB  |  113 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. //    License (GPLv2+):
  3. //    This program is free software; you can redistribute it and/or modify
  4. //    it under the terms of the GNU General Public License as published by
  5. //    the Free Software Foundation; either version 2 of the License, or
  6. //    (at your option) any later version.
  7. //
  8. //    This program is distributed in the hope that it will be useful, but
  9. //    WITHOUT ANY WARRANTY; without even the implied warranty of
  10. //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  11. //    General Public License for more details.
  12. //
  13. //    You should have received a copy of the GNU General Public License
  14. //    along with this program; if not, write to the Free Software
  15. //    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. /////////////////////////////////////////////////////////////////////////////
  17.  
  18. #include "stdafx.h"
  19. #include "fshed.h"
  20. #include "OptionsDlg.h"
  21.  
  22. #ifdef _DEBUG
  23. #define new DEBUG_NEW
  24. #undef THIS_FILE
  25. static char THIS_FILE[] = __FILE__;
  26. #endif
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CDispPage property page
  30.  
  31. IMPLEMENT_DYNCREATE(CDispPage, CPropertyPage)
  32.  
  33. CDispPage::CDispPage() : CPropertyPage(CDispPage::IDD)
  34. {
  35.     //{{AFX_DATA_INIT(CDispPage)
  36.     m_nAnsi = 0;
  37.     m_nFontSize = 0;
  38.     m_nIntel = 0;
  39.     m_nSigned = 0;
  40.     //}}AFX_DATA_INIT
  41. }
  42.  
  43. CDispPage::~CDispPage()
  44. {
  45. }
  46.  
  47. void CDispPage::DoDataExchange(CDataExchange* pDX)
  48. {
  49.     CPropertyPage::DoDataExchange(pDX);
  50.     //{{AFX_DATA_MAP(CDispPage)
  51.     DDX_Radio(pDX, IDC_ANSI_RB, m_nAnsi);
  52.     DDX_Text(pDX, IDC_FONT_SIZE_ED, m_nFontSize);
  53.     DDV_MinMaxInt(pDX, m_nFontSize, 4, 100);
  54.     DDX_Radio(pDX, IDC_INTEL_RB, m_nIntel);
  55.     DDX_Radio(pDX, IDC_SIGNED_RB, m_nSigned);
  56.     //}}AFX_DATA_MAP
  57. }
  58.  
  59.  
  60. BEGIN_MESSAGE_MAP(CDispPage, CPropertyPage)
  61.     //{{AFX_MSG_MAP(CDispPage)
  62.         // NOTE: the ClassWizard will add message map macros here
  63.     //}}AFX_MSG_MAP
  64. END_MESSAGE_MAP()
  65.  
  66. /////////////////////////////////////////////////////////////////////////////
  67. // CDispPage message handlers
  68. /////////////////////////////////////////////////////////////////////////////
  69. // CGenPage property page
  70.  
  71. IMPLEMENT_DYNCREATE(CGenPage, CPropertyPage)
  72.  
  73. CGenPage::CGenPage() : CPropertyPage(CGenPage::IDD)
  74. {
  75.     //{{AFX_DATA_INIT(CGenPage)
  76.     m_bAdjustBytes = FALSE;
  77.     m_strIntBrowser = _T("");
  78.     m_nNumBytes = 0;
  79.     m_nOffsetLen = 0;
  80.     m_bSetRead = FALSE;
  81.     m_strTextEditor = _T("");
  82.     //}}AFX_DATA_INIT
  83. }
  84.  
  85. CGenPage::~CGenPage()
  86. {
  87. }
  88.  
  89. void CGenPage::DoDataExchange(CDataExchange* pDX)
  90. {
  91.     CPropertyPage::DoDataExchange(pDX);
  92.     //{{AFX_DATA_MAP(CGenPage)
  93.     DDX_Check(pDX, IDC_ADJ_BYTES_CHK, m_bAdjustBytes);
  94.     DDX_Text(pDX, IDC_BROWSER_ED, m_strIntBrowser);
  95.     DDX_Text(pDX, IDC_NUM_BYTES_ED, m_nNumBytes);
  96.     DDV_MinMaxInt(pDX, m_nNumBytes, 0, 100);
  97.     DDX_Text(pDX, IDC_OFFSET_LEN_ED, m_nOffsetLen);
  98.     DDV_MinMaxInt(pDX, m_nOffsetLen, 1, 9);
  99.     DDX_Check(pDX, IDC_SET_READ_ONLY_CHK, m_bSetRead);
  100.     DDX_Text(pDX, IDC_TEXT_ED, m_strTextEditor);
  101.     //}}AFX_DATA_MAP
  102. }
  103.  
  104.  
  105. BEGIN_MESSAGE_MAP(CGenPage, CPropertyPage)
  106.     //{{AFX_MSG_MAP(CGenPage)
  107.         // NOTE: the ClassWizard will add message map macros here
  108.     //}}AFX_MSG_MAP
  109. END_MESSAGE_MAP()
  110.  
  111. /////////////////////////////////////////////////////////////////////////////
  112. // CGenPage message handlers
  113.