myscrollview.h

来自「此代码可以轻松实现在对话框中动态创建视图!」· C头文件 代码 · 共 54 行

H
54
字号
#if !defined(AFX_MYSCROLLVIEW_H__CE882A9D_58C3_486B_AD61_99453AA41255__INCLUDED_)
#define AFX_MYSCROLLVIEW_H__CE882A9D_58C3_486B_AD61_99453AA41255__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MyScrollView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CMyScrollView view

class CMyScrollView : public CScrollView
{
protected:
	CMyScrollView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CMyScrollView)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyScrollView)
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual void OnInitialUpdate();     // first time after construct
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CMyScrollView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CMyScrollView)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYSCROLLVIEW_H__CE882A9D_58C3_486B_AD61_99453AA41255__INCLUDED_)

⌨️ 快捷键说明

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