📄 paintvw.h
字号:
// paintvw.h : interface of the CPaintobjView class
//
/////////////////////////////////////////////////////////////////////////////
#ifndef __CCPaintobjViewinterfaceyhh
#define __CCPaintobjViewinterfaceyhh
class CPaintobjView : public CScrollView
{
protected: // create from serialization only
CPaintobjView();
DECLARE_DYNCREATE(CPaintobjView)
HCURSOR m_hcurChange;//端点重合时光标句柄
HCURSOR m_hcurCross;//十字光标句柄
HCURSOR m_hcurArrow;//箭头光标句柄
HCURSOR m_hcurZoomin;//缩小光标句柄
HCURSOR m_hcurZoomout;//放大光标句柄
HCURSOR m_hcurSetorigin;//设置原点光标句柄
HCURSOR m_hcurNodeattr;//编辑节点光标句柄
HCURSOR m_hcurMove;//移动光标句柄
HCURSOR m_hcurSize;//光标Size句柄
BOOL m_bTracking;//TRUE表示正在绘制图形
BOOL m_bZoomMode;
BOOL m_bSetorigin;//表示要设置原点
int m_npushnumber;//画弧时,按下左键次数
public:
CPaintobjDoc* GetDocument();
CSearchPath* m_pSearchPath;
CSearchNode* m_pSearchNode;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPaintobjView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual void OnInitialUpdate();
virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
void InitView();
void SearchNode();
void SearchPath();
void PathSort();
void NodeSort();
void NodeStateReset();//节点状态复位
void NodeStateJudge();//节点状态判断
void NodeStateJudge1();//节点状态判断
void SelectClear();
void SelectClear1();
virtual ~CPaintobjView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CPaintobjView)
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 OnViewScroll();
afx_msg void OnUpdateViewScroll(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewZoomfit(CCmdUI* pCmdUI);
afx_msg void OnViewZoomfit();
afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditCut(CCmdUI* pCmdUI);
afx_msg void OnEditCut();
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnOptionSetorigin();
afx_msg void OnOptionSetscale();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnViewRevert();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnEditCopy();
afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI);
afx_msg void OnEditPaste();
afx_msg void OnUpdateViewRevert(CCmdUI* pCmdUI);
afx_msg void OnOptionNodestate();
afx_msg void OnUpdateOptionNodestate(CCmdUI* pCmdUI);
afx_msg void OnToolJointwolines();
afx_msg void OnUpdateToolJointwolines(CCmdUI* pCmdUI);
afx_msg void OnChangeAngle();
afx_msg void OnChecked();
afx_msg void OnChangeLength();
afx_msg void OnSelectAnglelength();
afx_msg void OnSelchangeCombo1();
afx_msg void OnUpdateSelectAnglelength(CCmdUI* pCmdUI);
afx_msg void OnOptionNodesort();
afx_msg void OnEditSearchpath();
afx_msg void OnEditSearchnode();
afx_msg void OnOptionInputorigin();
afx_msg void OnToolBuildingJointwolines();
afx_msg void OnUpdateToolBuildingJointwolines(CCmdUI* pCmdUI);
afx_msg void OnToolDeviceJointwolines();
afx_msg void OnUpdateToolDeviceJointwolines(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in paintvw.cpp
inline CPaintobjDoc* CPaintobjView::GetDocument()
{ return (CPaintobjDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -