home *** CD-ROM | disk | FTP | other *** search
- // QueryDefView.h : interface of the CQueryDefView class
- //
- /////////////////////////////////////////////////////////////////////////////
-
- class CQueryDefSet;
-
- class CQueryDefView : public CDaoRecordView
- {
- protected: // create from serialization only
- CQueryDefView();
- DECLARE_DYNCREATE(CQueryDefView)
-
- public:
- //{{AFX_DATA(CQueryDefView)
- enum { IDD = IDD_QUERYDEF_FORM };
- CQueryDefSet* m_pSet;
- //}}AFX_DATA
-
- // Attributes
- public:
- CQueryDefDoc* GetDocument();
-
- protected:
- CDaoQueryDef* m_pQueryDef;
- short m_nYear;
-
- // Operations
- public:
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CQueryDefView)
- public:
- virtual CDaoRecordset* OnGetRecordset();
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual void OnInitialUpdate(); // called first time after construct
- //}}AFX_VIRTUAL
-
- // Implementation
- public:
- virtual ~CQueryDefView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
-
- protected:
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(CQueryDefView)
- afx_msg void OnQuerydefCreate();
- afx_msg void OnQuerydefExecute();
- afx_msg void OnUpdateQuerydefExecute(CCmdUI* pCmdUI);
- afx_msg void OnQuerydefRemove();
- afx_msg void OnUpdateQuerydefRemove(CCmdUI* pCmdUI);
- afx_msg void OnUpdateQuerydefCreate(CCmdUI* pCmdUI);
- afx_msg void OnDestroy();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- #ifndef _DEBUG // debug version in QueryDefView.cpp
- inline CQueryDefDoc* CQueryDefView::GetDocument()
- { return (CQueryDefDoc*)m_pDocument; }
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
-