ex13avw.h

来自「VC++技术内幕(第四版)的实例」· C头文件 代码 · 共 52 行

H
52
字号
// ex13avw.h : interface of the CEx13aView class
//
/////////////////////////////////////////////////////////////////////////////

class CEx13aView : public CView
{
private:
    CRect m_rect;
    BOOL  m_bCircle;
    BOOL  m_bPattern;
protected: // create from serialization only
    CEx13aView();
    DECLARE_DYNCREATE(CEx13aView)

// Attributes
public:
    CEx13aDoc* GetDocument();

// Operations
public:

// Implementation
public:
    virtual ~CEx13aView();
    virtual void OnDraw(CDC* pDC);  // overridden to draw this view
#ifdef _DEBUG
    virtual void AssertValid() const;
    virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
    //{{AFX_MSG(CEx13aView)
    afx_msg void OnDrawCircle();
    afx_msg void OnUpdateDrawCircle(CCmdUI* pCmdUI);
    afx_msg void OnDrawPattern();
    afx_msg void OnUpdateDrawPattern(CCmdUI* pCmdUI);
    afx_msg void OnDrawSquare();
    afx_msg void OnUpdateDrawSquare(CCmdUI* pCmdUI);
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in ex13avw.cpp
inline CEx13aDoc* CEx13aView::GetDocument()
   { return (CEx13aDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?