www.pudn.com > CDem.rar > CDemView.h
// CDemView.h : interface of the CCDemView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_CDEMVIEW_H__B1D140FE_8444_4BE4_8484_54F3546DD7ED__INCLUDED_) #define AFX_CDEMVIEW_H__B1D140FE_8444_4BE4_8484_54F3546DD7ED__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include#include class CCDemView : public CView { protected: // create from serialization only CCDemView(); DECLARE_DYNCREATE(CCDemView) // Attributes public: CCDemDoc* GetDocument(); // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CCDemView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); //}}AFX_VIRTUAL // Implementation public: int* m_pEle; int m_nScale; int m_nCol; int m_nRow; float m_fGridY; float m_fGridX; float m_fLeftTopY; float m_fLeftTopX; bool m_bPress; BOOL OpenFile(char *szFile); virtual ~CCDemView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CCDemView) afx_msg void OnFileOpen(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in CDemView.cpp inline CCDemDoc* CCDemView::GetDocument() { return (CCDemDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_CDEMVIEW_H__B1D140FE_8444_4BE4_8484_54F3546DD7ED__INCLUDED_)