MainFrm.h
资源名称:CAD2006.rar [点击查看]
上传用户:ckg1000
上传日期:2013-01-26
资源大小:630k
文件大小:4k
源码类别:
CAD
开发平台:
Visual C++
- // MainFrm.h : interface of the CMainFrame class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MAINFRM_H__6C9CD3B0_5183_4A19_A39B_C49191086F06__INCLUDED_)
- #define AFX_MAINFRM_H__6C9CD3B0_5183_4A19_A39B_C49191086F06__INCLUDED_
- #include "NewDialogTrigon.h" // Added by ClassView
- #include "NewDialogBar.h" // Added by ClassView
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Tool/MenuXP.h"
- #include "Tool/ToolBarXP.h"
- #include "Tool/StatusBarXP.h"
- #include "Tool/ComboBoxXP.h"
- #include "newtoolbar.h"
- #include "NewEditWrite.h"
- #include "DIALOGscbarg.h" // Added by ClassView
- #include "Shape.h" // Added by ClassView
- #include "CAD2006Doc.h" // Added by ClassView
- enum LINESTYLE{realline,brokenline,dotline,twoline};
- enum LINEWIDTH{one,two,three,four,five,six,seven};
- extern enum SHAPE;
- class CMainFrame : public CFrameWnd
- {
- protected: // create from serialization only
- CMainFrame();
- DECLARE_DYNCREATE(CMainFrame);
- LINESTYLE m_style;
- // Attributes
- public:
- CStatusBarXP m_wndStatusBar;
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMainFrame)
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
- virtual BOOL LoadFrame(UINT nIDResource, DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, CWnd* pParentWnd = NULL, CCreateContext* pContext = NULL);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- NewDialogTrigon m_wndTrigon;
- CCoolBar m_wndcoolbar;
- virtual ~CMainFrame();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected: // control bar embedded members
- NewToolBar m_wndToolBar;
- // Generated message map functions
- protected:
- NewEditWrite m_wndedit;
- void SetLineStyle(CCmdUI *pCmdUI,LINESTYLE style);
- void SetNumCheck(CCmdUI *pCmdUI,LINEWIDTH width);
- void SetButtonCheck(CCmdUI *pCmdUI,SHAPE style);
- //NewEditWrite m_wndedit;
- //{{AFX_MSG(CMainFrame)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnClose();
- afx_msg void OnRealline();
- afx_msg void OnBrokenline();
- afx_msg void OnTrigon();
- afx_msg void OnRect();
- afx_msg void OnPolygon();
- afx_msg void OnRound();
- afx_msg void OnEllipse();
- afx_msg void OnArc();
- afx_msg void OnLine();
- afx_msg void OnFoldLine();
- afx_msg void OnAngleLine();
- afx_msg void OnColorfor();
- afx_msg void OnColorback();
- afx_msg void OnUpdateRealline(CCmdUI* pCmdUI);
- afx_msg void OnUpdateBrokenline(CCmdUI* pCmdUI);
- afx_msg void OnUpdateLine(CCmdUI* pCmdUI);
- afx_msg void OnUpdateFoldLine(CCmdUI* pCmdUI);
- afx_msg void OnUpdateAngleLine(CCmdUI* pCmdUI);
- afx_msg void OnDotline();
- afx_msg void OnUpdateDotline(CCmdUI* pCmdUI);
- afx_msg void OnTwoline();
- afx_msg void OnUpdateTwoline(CCmdUI* pCmdUI);
- afx_msg void OnUpdateRound(CCmdUI* pCmdUI);
- afx_msg void OnUpdateEllipse(CCmdUI* pCmdUI);
- afx_msg void OnUpdateArc(CCmdUI* pCmdUI);
- afx_msg void OnNum1();
- afx_msg void OnUpdateNum1(CCmdUI* pCmdUI);
- afx_msg void OnNum2();
- afx_msg void OnUpdateNum2(CCmdUI* pCmdUI);
- afx_msg void OnNum3();
- afx_msg void OnUpdateNum3(CCmdUI* pCmdUI);
- afx_msg void OnNum4();
- afx_msg void OnUpdateNum4(CCmdUI* pCmdUI);
- afx_msg void OnNum5();
- afx_msg void OnUpdateNum5(CCmdUI* pCmdUI);
- afx_msg void OnNum6();
- afx_msg void OnUpdateNum6(CCmdUI* pCmdUI);
- afx_msg void OnNum7();
- afx_msg void OnUpdateNum7(CCmdUI* pCmdUI);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP();
- DECLARE_MENUXP();
- public:
- LINEWIDTH m_linewidth;
- NewDialogBar m_wndDialogBar;
- private:
- CShape *m_shape;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MAINFRM_H__6C9CD3B0_5183_4A19_A39B_C49191086F06__INCLUDED_)