📄 mainfrm.h
字号:
// mainfrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#ifndef __CCMainFrameinterfaceyhh
#define __CCMainFrameinterfaceyhh
class CMainFrame : public CFrameWnd
{
DECLARE_DYNCREATE(CMainFrame)
public:
CMainFrame();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
protected:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMainFrame();
CStatusBar m_wndStatusBar; //状态条
CDialogBar m_wndMyDialogBar;
CDialogBar m_wndMyDialogBar1;
//路径绘制工具条
CToolBar m_wndPathLineToolBar;
CToolBar m_wndPathArcToolBar;
CToolBar m_wndPathLazysToolBar;
CToolBar m_wndPathSideToolBar;
CToolBar m_wndPathScpToolBar;
CToolBar m_wndDrawToolBar; //绘图工具条
//建筑物绘制工具条
CToolBar m_wndBuildingLineToolBar;
CToolBar m_wndBuildingArcToolBar;
CToolBar m_wndBuildingLazysToolBar;
CToolBar m_wndBuildingEllipseToolBar;
CToolBar m_wndBuildingRectToolBar;
CToolBar m_wndBuildingPolygonToolBar;
CToolBar m_wndBuildingRoundrectToolBar;
CToolBar m_wndBuildingChordToolBar;
CToolBar m_wndBuildingPieToolBar;
//设备绘制工具条
CToolBar m_wndDeviceLineToolBar;
CToolBar m_wndDeviceArcToolBar;
CToolBar m_wndDeviceLazysToolBar;
CToolBar m_wndDeviceEllipseToolBar;
CToolBar m_wndDeviceRectToolBar;
CToolBar m_wndDevicePolygonToolBar;
CToolBar m_wndDeviceRoundrectToolBar;
CToolBar m_wndDeviceChordToolBar;
CToolBar m_wndDevicePieToolBar;
void DockControlBarLeftOf(CToolBar* Bar,CToolBar* LeftOf);
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
void SetPositionText(CPoint& point); //在状态条显示点坐标
void ClearPositionText(); //清除状态条显示点坐标
//创建工具条
BOOL CreatePathLineToolBar();
BOOL CreatePathArcToolBar();
BOOL CreatePathLazysToolBar();
BOOL CreatePathSideToolBar();
BOOL CreatePathScpToolBar();
BOOL CreateDrawToolBar();//绘图工具条
BOOL CreateBuildingLineToolBar();
BOOL CreateBuildingArcToolBar();
BOOL CreateBuildingLazysToolBar();
BOOL CreateBuildingEllipseToolBar();
BOOL CreateBuildingRectToolBar();
BOOL CreateBuildingPolygonToolBar();
BOOL CreateBuildingRoundrectToolBar();
BOOL CreateBuildingChordToolBar();
BOOL CreateBuildingPieToolBar();
BOOL CreateDeviceLineToolBar();
BOOL CreateDeviceArcToolBar();
BOOL CreateDeviceLazysToolBar();
BOOL CreateDeviceEllipseToolBar();
BOOL CreateDeviceRectToolBar();
BOOL CreateDevicePolygonToolBar();
BOOL CreateDeviceRoundrectToolBar();
BOOL CreateDeviceChordToolBar();
BOOL CreateDevicePieToolBar();
protected: // control bar embedded members
CToolBar m_wndToolBar; //系统自带工具条
HICON m_hIcon;
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnHelpFinder();
afx_msg void OnViewToolbar();
afx_msg void OnUpdateViewToolbar(CCmdUI* pCmdUI);
afx_msg void OnClose();
// afx_msg void OnViewDrawtoolbarArc();
// afx_msg void OnUpdateViewDrawtoolbarArc(CCmdUI* pCmdUI);
// afx_msg void OnViewDrawtoolbarBeeline();
// afx_msg void OnUpdateViewDrawtoolbarBeeline(CCmdUI* pCmdUI);
// afx_msg void OnViewDrawtoolbarChord();
// afx_msg void OnUpdateViewDrawtoolbarChord(CCmdUI* pCmdUI);
// afx_msg void OnViewDrawtoolbarEllipse();
// afx_msg void OnUpdateViewDrawtoolbarEllipse(CCmdUI* pCmdUI);
// afx_msg void OnViewDrawtoolbarLazys();
// afx_msg void OnUpdateViewDrawtoolbarLazys(CCmdUI* pCmdUI);
// afx_msg void OnViewDrawtoolbarPie();
// afx_msg void OnUpdateViewDrawtoolbarPie(CCmdUI* pCmdUI);
// afx_msg void OnViewDrawtoolbarPolygon();
// afx_msg void OnUpdateViewDrawtoolbarPolygon(CCmdUI* pCmdUI);
// afx_msg void OnViewDrawtoolbarRect();
// afx_msg void OnUpdateViewDrawtoolbarRect(CCmdUI* pCmdUI);
// afx_msg void OnViewDrawtoolbarRoundrect();
// afx_msg void OnUpdateViewDrawtoolbarRoundrect(CCmdUI* pCmdUI);
// afx_msg void OnViewDrawtoolbarScp();
// afx_msg void OnUpdateViewDrawtoolbarScp(CCmdUI* pCmdUI);
// afx_msg void OnViewDrawtoolbarSide();
// afx_msg void OnUpdateViewDrawtoolbarSide(CCmdUI* pCmdUI);
// afx_msg void OnViewDrawtoolbarTool();
// afx_msg void OnUpdateViewDrawtoolbarTool(CCmdUI* pCmdUI);
afx_msg void OnViewBuildingdrawtoolbarArc();
afx_msg void OnUpdateViewBuildingdrawtoolbarArc(CCmdUI* pCmdUI);
afx_msg void OnViewBuildingdrawtoolbarBeeline();
afx_msg void OnUpdateViewBuildingdrawtoolbarBeeline(CCmdUI* pCmdUI);
afx_msg void OnViewBuildingdrawtoolbarChord();
afx_msg void OnUpdateViewBuildingdrawtoolbarChord(CCmdUI* pCmdUI);
afx_msg void OnViewBuildingdrawtoolbarEllipse();
afx_msg void OnUpdateViewBuildingdrawtoolbarEllipse(CCmdUI* pCmdUI);
afx_msg void OnViewBuildingdrawtoolbarLazys();
afx_msg void OnUpdateViewBuildingdrawtoolbarLazys(CCmdUI* pCmdUI);
afx_msg void OnViewBuildingdrawtoolbarPie();
afx_msg void OnUpdateViewBuildingdrawtoolbarPie(CCmdUI* pCmdUI);
afx_msg void OnViewBuildingdrawtoolbarPolygon();
afx_msg void OnUpdateViewBuildingdrawtoolbarPolygon(CCmdUI* pCmdUI);
afx_msg void OnViewBuildingdrawtoolbarRect();
afx_msg void OnUpdateViewBuildingdrawtoolbarRect(CCmdUI* pCmdUI);
afx_msg void OnViewBuildingdrawtoolbarRoundrect();
afx_msg void OnUpdateViewBuildingdrawtoolbarRoundrect(CCmdUI* pCmdUI);
afx_msg void OnViewDevicedrawtoolbarArc();
afx_msg void OnUpdateViewDevicedrawtoolbarArc(CCmdUI* pCmdUI);
afx_msg void OnViewDevicedrawtoolbarBeeline();
afx_msg void OnUpdateViewDevicedrawtoolbarBeeline(CCmdUI* pCmdUI);
afx_msg void OnViewDevicedrawtoolbarChord();
afx_msg void OnUpdateViewDevicedrawtoolbarChord(CCmdUI* pCmdUI);
afx_msg void OnViewDevicedrawtoolbarEllipse();
afx_msg void OnUpdateViewDevicedrawtoolbarEllipse(CCmdUI* pCmdUI);
afx_msg void OnViewDevicedrawtoolbarLazys();
afx_msg void OnUpdateViewDevicedrawtoolbarLazys(CCmdUI* pCmdUI);
afx_msg void OnViewDevicedrawtoolbarPie();
afx_msg void OnUpdateViewDevicedrawtoolbarPie(CCmdUI* pCmdUI);
afx_msg void OnViewDevicedrawtoolbarPolygon();
afx_msg void OnUpdateViewDevicedrawtoolbarPolygon(CCmdUI* pCmdUI);
afx_msg void OnViewDevicedrawtoolbarRect();
afx_msg void OnUpdateViewDevicedrawtoolbarRect(CCmdUI* pCmdUI);
afx_msg void OnViewDevicedrawtoolbarRoundrect();
afx_msg void OnUpdateViewDevicedrawtoolbarRoundrect(CCmdUI* pCmdUI);
afx_msg void OnViewDrawtool();
afx_msg void OnUpdateViewDrawtool(CCmdUI* pCmdUI);
afx_msg void OnViewPathdrawtoolbarArc();
afx_msg void OnUpdateViewPathdrawtoolbarArc(CCmdUI* pCmdUI);
afx_msg void OnViewPathdrawtoolbarBeeline();
afx_msg void OnUpdateViewPathdrawtoolbarBeeline(CCmdUI* pCmdUI);
afx_msg void OnViewPathdrawtoolbarLazys();
afx_msg void OnUpdateViewPathdrawtoolbarLazys(CCmdUI* pCmdUI);
afx_msg void OnViewPathdrawtoolbarScp();
afx_msg void OnUpdateViewPathdrawtoolbarScp(CCmdUI* pCmdUI);
afx_msg void OnViewPathdrawtoolbarSide();
afx_msg void OnUpdateViewPathdrawtoolbarSide(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -