📄 ex41view.h
字号:
// ex41View.h : interface of the CEx41View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_EX41VIEW_H__902252BF_D67B_4FDC_939B_0AF345AB8476__INCLUDED_)
#define AFX_EX41VIEW_H__902252BF_D67B_4FDC_939B_0AF345AB8476__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CEx41View : public CView
{
protected: // create from serialization only
CEx41View();
DECLARE_DYNCREATE(CEx41View)
// Attributes
public:
CEx41Doc* GetDocument();
private:
//直线的起始点和终点
CPoint m_ptStart,m_ptEnd;
//鼠标是否拖动标志
bool m_isDragging;
//当前选择的颜色
COLORREF m_curCol;
//选择的菜单项
int m_curID;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEx41View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CEx41View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CEx41View)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnColBlack();
afx_msg void OnUpdateColBlack(CCmdUI* pCmdUI);
afx_msg void OnColBlue();
afx_msg void OnUpdateColBlue(CCmdUI* pCmdUI);
afx_msg void OnColGreen();
afx_msg void OnUpdateColGreen(CCmdUI* pCmdUI);
afx_msg void OnColRed();
afx_msg void OnUpdateColRed(CCmdUI* pCmdUI);
afx_msg void OnColYellow();
afx_msg void OnUpdateColYellow(CCmdUI* pCmdUI);
afx_msg void OnColCustom();
afx_msg void OnUpdateColCustom(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ex41View.cpp
inline CEx41Doc* CEx41View::GetDocument()
{ return (CEx41Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EX41VIEW_H__902252BF_D67B_4FDC_939B_0AF345AB8476__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -