📄 stmeditorview.h
字号:
// STMEditorView.h : interface of the CSTMEditorView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_STMEDITORVIEW_H__5F23E595_86FB_4518_B5FC_61A471EFF365__INCLUDED_)
#define AFX_STMEDITORVIEW_H__5F23E595_86FB_4518_B5FC_61A471EFF365__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "STMCrossEventHandle.h"
#include "STMPathEventHandle.h"
#include "STMBSEventHandle.h"
#include "STMTREventHandle.h"
#include "STMStreetEventHandle.h"
#include "STMAddressEventHandle.h"
#include "STMObjBrowseDlg.h"
class CSTMEditorView : public CScrollView
{
protected: // create from serialization only
CSTMEditorView();
DECLARE_DYNCREATE(CSTMEditorView)
// Attributes
public:
void DrawSelElements();
CSTMEditorDoc* GetDocument();
private:
void ClearElementsSelFlag();
void UpdateToolbarState();
HCURSOR m_Cursor;
UINT m_curTool;
HCURSOR m_curCross,m_curPath,m_curBrowse,m_curBS;
HCURSOR m_curTR,m_curStreet,m_curAddress;
CSTMCrossEventHandle m_ehCross;
CSTMPathEventHandle m_ehPath;
CSTMBSEventHandle m_ehBS;
CSTMTREventHandle m_ehTR;
CSTMStreetEventHandle m_ehStreet;
CSTMAddressEventHandle m_ehAddress;
CSTMObjBrowseDlg m_objBrowseDlg;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSTMEditorView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
//}}AFX_VIRTUAL
afx_msg void OnFuncChange(UINT func) ;
// Implementation
public:
virtual ~CSTMEditorView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CSTMEditorView)
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnViewCross();
afx_msg void OnViewPath();
afx_msg void OnViewRefresh();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnViewObjbrowse();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnToolDrawsel();
afx_msg void OnViewAddress();
afx_msg void OnViewBk();
afx_msg void OnViewBs();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in STMEditorView.cpp
inline CSTMEditorDoc* CSTMEditorView::GetDocument()
{ return (CSTMEditorDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STMEDITORVIEW_H__5F23E595_86FB_4518_B5FC_61A471EFF365__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -