formviewView.h
上传用户:hjw22cn
上传日期:2007-01-11
资源大小:192k
文件大小:2k
- // formviewView.h : interface of the CFormviewView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_FORMVIEWVIEW_H__EFACAC0B_BF11_11D4_B7AA_0050DAB84384__INCLUDED_)
- #define AFX_FORMVIEWVIEW_H__EFACAC0B_BF11_11D4_B7AA_0050DAB84384__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CTabDataSheet;
- class CFormviewView : public CFormView
- {
- protected: // create from serialization only
- CFormviewView();
- DECLARE_DYNCREATE(CFormviewView)
- public:
- //{{AFX_DATA(CFormviewView)
- enum{ IDD = IDD_FORMVIEW_FORM };
- // NOTE: the ClassWizard will add data members here
- //}}AFX_DATA
- // Attributes
- public:
- CFormviewDoc* GetDocument();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CFormviewView)
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual void OnInitialUpdate(); // called first time after construct
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CFormviewView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CFormviewView)
- afx_msg void OnSize(UINT nType, int cx, int cy);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- CTabDataSheet* m_pSheet;
- void DeleteDataSheet();
- void CreateDataSheet(int selectedPage);
- };
- #ifndef _DEBUG // debug version in formviewView.cpp
- inline CFormviewDoc* CFormviewView::GetDocument()
- { return (CFormviewDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_FORMVIEWVIEW_H__EFACAC0B_BF11_11D4_B7AA_0050DAB84384__INCLUDED_)