?? myscrollview.h
字號:
#if !defined(AFX_MYSCROLLVIEW_H__D7BCF415_DF6B_4FB3_A134_EAB2C7CE5A22__INCLUDED_)
#define AFX_MYSCROLLVIEW_H__D7BCF415_DF6B_4FB3_A134_EAB2C7CE5A22__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:
CPoint m_ptPrev; //線條最后一個點
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyScrollView)
public:
virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
virtual BOOL OnScroll(UINT nScrollCode, UINT nPos, BOOL bDoScroll = TRUE);
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)
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
//}}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__D7BCF415_DF6B_4FB3_A134_EAB2C7CE5A22__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -