home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / Basic / Visual Basic.60 / COMMON / TOOLS / VCM / VCM.MDB / VcmComponentContainer / 14_Cabinet / OPTIONDG.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-18  |  1.6 KB  |  63 lines

  1. // OptionsDlg.cpp : implementation file
  2. //
  3. // This is a part of the Microsoft Foundation Classes and
  4. // Templates (MFC&T).
  5. // Copyright (C) 1998 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // MFC&T Reference and related electronic documentation provided
  10. // with the library.  See these sources for detailed information
  11. // regarding the MFC&T product.
  12. //
  13.  
  14. #include "stdafx.h"
  15. #include "DBViewer.h"
  16. #include "OptionDg.h"
  17.  
  18. #ifdef _DEBUG
  19. #define new DEBUG_NEW
  20. #undef THIS_FILE
  21. static char THIS_FILE[] = __FILE__;
  22. #endif
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25. // COptionsDlg property page
  26.  
  27. IMPLEMENT_DYNCREATE(COptionsDlg, CPropertyPage)
  28.  
  29. COptionsDlg::COptionsDlg() : CPropertyPage(COptionsDlg::IDD)
  30. {
  31.     //{{AFX_DATA_INIT(COptionsDlg)
  32.     m_bOpenODBC = FALSE;
  33.     m_bShowSystemObjects = FALSE;
  34.     m_bShowWarnings = FALSE;
  35.     m_nMaxRecords = 0;
  36.     //}}AFX_DATA_INIT
  37. }
  38.  
  39. COptionsDlg::~COptionsDlg()
  40. {
  41. }
  42.  
  43. void COptionsDlg::DoDataExchange(CDataExchange* pDX)
  44. {
  45.     CPropertyPage::DoDataExchange(pDX);
  46.     //{{AFX_DATA_MAP(COptionsDlg)
  47.     DDX_Check(pDX, IDC_BOPENODBC, m_bOpenODBC);
  48.     DDX_Check(pDX, IDC_BSYSTEMOBJECTS, m_bShowSystemObjects);
  49.     DDX_Check(pDX, IDC_BWARNINGS, m_bShowWarnings);
  50.     DDX_Text(pDX, IDC_MAXRECS, m_nMaxRecords);
  51.     //}}AFX_DATA_MAP
  52. }
  53.  
  54.  
  55. BEGIN_MESSAGE_MAP(COptionsDlg, CPropertyPage)
  56.     //{{AFX_MSG_MAP(COptionsDlg)
  57.         // NOTE: the ClassWizard will add message map macros here
  58.     //}}AFX_MSG_MAP
  59. END_MESSAGE_MAP()
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62. // COptionsDlg message handlers
  63.