hotspvw.h
来自「本程序是《Visual C++多媒体开发指南》配套代码」· C头文件 代码 · 共 65 行
H
65 行
// hotspvw.h : interface of the CHotspot3View class
//
/////////////////////////////////////////////////////////////////////////////
class CHotspot3View : public CView
{
protected: // create from serialization only
CHotspot3View();
DECLARE_DYNCREATE(CHotspot3View)
// Attributes
public:
CHotspot3Doc* GetDocument();
void DrawLine(CPoint point1, CPoint point2);
private:
CPoint m_oldPoint;
int m_oldMode;
CPen* m_oldPen;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CHotspot3View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
protected:
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CHotspot3View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CHotspot3View)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
afx_msg void OnModeTest();
afx_msg void OnModeDefine();
afx_msg void OnUpdateModeTest(CCmdUI* pCmdUI);
afx_msg void OnNewRegion();
afx_msg void OnUpdateNewRegion(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in hotspvw.cpp
inline CHotspot3Doc* CHotspot3View::GetDocument()
{ return (CHotspot3Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?