📄 draw_lineview.h
字号:
// Draw_LineView.h : interface of the CDraw_LineView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_DRAW_LINEVIEW_H__BC833D22_6190_11D5_A9E1_0000210013F9__INCLUDED_)
#define AFX_DRAW_LINEVIEW_H__BC833D22_6190_11D5_A9E1_0000210013F9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define WM_TRIANGLE_COMPLETED WM_USER+10
class CDraw_LineView : public CView
{
protected: // create from serialization only
CDraw_LineView();
DECLARE_DYNCREATE(CDraw_LineView)
// Attributes
public:
CDraw_LineDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDraw_LineView)
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 ~CDraw_LineView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CDraw_LineView)
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 OnDrawTriangle();
afx_msg void OnUpdateDrawTriangle(CCmdUI* pCmdUI);
//}}AFX_MSG
afx_msg LRESULT OnTriangleCompleted(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
private:
CPoint m_NewPoint;
CPoint m_OrgPoint;
BOOL m_bDraw;
BOOL m_bTriangle;
};
#ifndef _DEBUG // debug version in Draw_LineView.cpp
inline CDraw_LineDoc* CDraw_LineView::GetDocument()
{ return (CDraw_LineDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DRAW_LINEVIEW_H__BC833D22_6190_11D5_A9E1_0000210013F9__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -