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

  1. // colpage.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 "CatDB.h"
  16. #include "colpage.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. // CColumnPage property page
  26.  
  27. IMPLEMENT_DYNCREATE(CColumnPage, CPropertyPage)
  28.  
  29. CColumnPage::CColumnPage() : CPropertyPage(CColumnPage::IDD)
  30. {
  31.     //{{AFX_DATA_INIT(CColumnPage)
  32.     m_bLength = FALSE;
  33.     m_bNullability = FALSE;
  34.     m_bPrecision = FALSE;
  35.     //}}AFX_DATA_INIT
  36. }
  37.  
  38. CColumnPage::~CColumnPage()
  39. {
  40. }
  41.  
  42. void CColumnPage::DoDataExchange(CDataExchange* pDX)
  43. {
  44.     CPropertyPage::DoDataExchange(pDX);
  45.     //{{AFX_DATA_MAP(CColumnPage)
  46.     DDX_Check(pDX, IDC_LENGTH, m_bLength);
  47.     DDX_Check(pDX, IDC_NULLABILITY, m_bNullability);
  48.     DDX_Check(pDX, IDC_PRECISION, m_bPrecision);
  49.     //}}AFX_DATA_MAP
  50. }
  51.  
  52.  
  53. BEGIN_MESSAGE_MAP(CColumnPage, CPropertyPage)
  54.     //{{AFX_MSG_MAP(CColumnPage)
  55.         // NOTE: the ClassWizard will add message map macros here
  56.     //}}AFX_MSG_MAP
  57. END_MESSAGE_MAP()
  58.  
  59. /////////////////////////////////////////////////////////////////////////////
  60. // CColumnPage message handlers
  61.