home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / database / daoview / optionsd.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.5 KB  |  57 lines

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