www.pudn.com > TOOLBarSample.rar > TOOLBarSampleView.h, change:2006-03-28,size:2212b
// TOOLBarSampleView.h : interface of the CTOOLBarSampleView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_TOOLBARSAMPLEVIEW_H__972D1A08_0121_4865_BA27_B0B5637AAFC7__INCLUDED_) #define AFX_TOOLBARSAMPLEVIEW_H__972D1A08_0121_4865_BA27_B0B5637AAFC7__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CTOOLBarSampleView : public CView { protected: // create from serialization only CTOOLBarSampleView(); DECLARE_DYNCREATE(CTOOLBarSampleView) // Attributes public: CTOOLBarSampleDoc* GetDocument(); // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTOOLBarSampleView) 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: virtual ~CTOOLBarSampleView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif public : // 描述图形属性得成员变量 void OnSelChangeCombo(); int m_y ; int m_x ; int m_shape ; bool m_fill ; protected: // Generated message map functions protected: //{{AFX_MSG(CTOOLBarSampleView) afx_msg void OnEllipse(); afx_msg void OnUpdateEllipse(CCmdUI* pCmdUI); afx_msg void OnRect(); afx_msg void OnUpdateRect(CCmdUI* pCmdUI); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in TOOLBarSampleView.cpp inline CTOOLBarSampleDoc* CTOOLBarSampleView::GetDocument() { return (CTOOLBarSampleDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_TOOLBARSAMPLEVIEW_H__972D1A08_0121_4865_BA27_B0B5637AAFC7__INCLUDED_)