testmousecursorrgnview.h
来自「VisualC高级编程技术精粹.rar」· C头文件 代码 · 共 73 行
H
73 行
// TestMouseCursorRgnView.h : interface of the CTestMouseCursorRgnView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_TESTMOUSECURSORRGNVIEW_H__5932F68F_7210_4314_A54A_3C5DFD503AC6__INCLUDED_)
#define AFX_TESTMOUSECURSORRGNVIEW_H__5932F68F_7210_4314_A54A_3C5DFD503AC6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CTestMouseCursorRgnView : public CView
{
protected: // create from serialization only
CTestMouseCursorRgnView();
DECLARE_DYNCREATE(CTestMouseCursorRgnView)
// Attributes
public:
CTestMouseCursorRgnDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTestMouseCursorRgnView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CTestMouseCursorRgnView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CTestMouseCursorRgnView)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CRect m_Rect;
CRgn m_RectRgn ;
CRgn m_EllipRgn ;
int m_nLocation;
};
#ifndef _DEBUG // debug version in TestMouseCursorRgnView.cpp
inline CTestMouseCursorRgnDoc* CTestMouseCursorRgnView::GetDocument()
{ return (CTestMouseCursorRgnDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TESTMOUSECURSORRGNVIEW_H__5932F68F_7210_4314_A54A_3C5DFD503AC6__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?