home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / database / extbind / nwinddlg.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  69 lines

  1. // NwindDlg.h : header 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. /////////////////////////////////////////////////////////////////////////////
  14. // CNwindDialog dialog
  15. #include "msdgrid.h"
  16. #include "calendar.h"
  17. #include "msmask.h"
  18.  
  19. class CNwindDialog : public CDialog
  20. {
  21. // Construction
  22. public:
  23.     CNwindDialog(CWnd* pParent);   // standard constructor
  24.     BOOL Create();
  25.  
  26. // Dialog Data
  27.     //{{AFX_DATA(CNwindDialog)
  28.     enum { IDD = IDD_NWIND };
  29.     int     m_ShowDate;
  30.     int     m_ShowName;
  31.     //}}AFX_DATA
  32.  
  33.  
  34. // Overrides
  35.     // ClassWizard generated virtual function overrides
  36.     //{{AFX_VIRTUAL(CNwindDialog)
  37.     protected:
  38.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  39.     virtual void PostNcDestroy();
  40.     //}}AFX_VIRTUAL
  41.  
  42. // Implementation
  43. protected:
  44.  
  45.     CWnd* m_pParent;
  46.     int m_nID;
  47.     CMsDgridCtrl m_pGrid;
  48.     CCalendar m_date;
  49.     CMSMask m_lName;
  50.  
  51.     void BindCalendar();
  52.  
  53.     // Generated message map functions
  54.     //{{AFX_MSG(CNwindDialog)
  55.     virtual void OnOK();
  56.     virtual void OnCancel();
  57.     virtual BOOL OnInitDialog();
  58.     afx_msg void OnChangeDate();
  59.     afx_msg void OnChangeName();
  60.     afx_msg void OnDestroy();
  61.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  62.     //}}AFX_MSG
  63.     DECLARE_MESSAGE_MAP()
  64.     // Event Handler functions
  65.     afx_msg BOOL OnRequestEdit(UINT nCtl, BOOL* pBool);
  66.     afx_msg BOOL OnChanged(UINT nCtl);
  67.     DECLARE_EVENTSINK_MAP()
  68. };
  69.