?? tool_zuoview.h
字號:
// Tool_zuoView.h : interface of the CTool_zuoView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_TOOL_ZUOVIEW_H__C4D2691C_FD57_4FE4_8BD5_2185FD47D595__INCLUDED_)
#define AFX_TOOL_ZUOVIEW_H__C4D2691C_FD57_4FE4_8BD5_2185FD47D595__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CTool_zuoView : public CView
{
protected: // create from serialization only
CTool_zuoView();
DECLARE_DYNCREATE(CTool_zuoView)
// Attributes
public:
CTool_zuoDoc* GetDocument();
CPoint m_ptStart, m_ptEnd;
BOOL m_bDrawing, m_bFirstDraw;
CDC* m_pdcMem;
CBitmap m_bmBackup;
int m_nScreenW, m_nScreenH;
CBitmap* m_pbmBackground;
// Operations
public:
enum PAINTTYPE
{
IRREG_SEL=0,
RECT_SEL,
ERASER,
FILL,
SEL_COLOR,
MAGNIFY,
PEN,
BRUSH,
AIRBRUSH,
TEXT,
LINE,
CURVE,
RECT,
POLYGON,
ELLIPSE,
ROUND_RECT,
OUTLINED_RECT,
FILLED_RECT,
OUTLINED_ELLIPSE,
FILLED_ELLIPSE,
OUTLINED_POLYGON,
FILLED_POLYGON,
};
PAINTTYPE m_emPaintType;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTool_zuoView)
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:
COLORREF GetPaintColor() const;
int GetPenWidth() const;
void Line(CPoint point1, CPoint point2);
void XorLine(CPoint pt1,CPoint pt2);
void SetSelBox(int type);
virtual ~CTool_zuoView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CTool_zuoView)
afx_msg void OnButtonLine();
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 int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnButtonRect();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in Tool_zuoView.cpp
inline CTool_zuoDoc* CTool_zuoView::GetDocument()
{ return (CTool_zuoDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TOOL_ZUOVIEW_H__C4D2691C_FD57_4FE4_8BD5_2185FD47D595__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -