stringvw.h

来自「visual c++技术内幕范例的源代码」· C头文件 代码 · 共 52 行

H
52
字号
// stringvw.h : interface of the CStringView class
//
/////////////////////////////////////////////////////////////////////////////

class CStringView : public CScrollView
{
protected: // create from serialization only
    CStringView();
    DECLARE_DYNCREATE(CStringView)

// Attributes
public:
    CPoemDoc* GetDocument();

// Operations
public:

// Implementation
protected:
    virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
    void SetScrollInfo();
public:
    virtual ~CStringView();
    virtual void OnDraw(CDC* pDC);  // overridden to draw this view
#ifdef _DEBUG
    virtual void AssertValid() const;
    virtual void Dump(CDumpContext& dc) const;
#endif

protected:
    virtual void OnInitialUpdate(); // called first time after construct

    // Printing support
    virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
    virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
    virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);

// Generated message map functions
protected:
    //{{AFX_MSG(CStringView)
    afx_msg void OnSize(UINT nType, int cx, int cy);
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in stringvw.cpp
inline CPoemDoc* CStringView::GetDocument()
   { return (CPoemDoc*)m_pDocument; }
#endif

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

⌨️ 快捷键说明

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