MainFrm.h
上传用户:asikq0571
上传日期:2014-07-12
资源大小:528k
文件大小:3k
- // MainFrm.h : interface of the CMainFrame class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MAINFRM_H__CDDEFF07_5F50_41E9_B306_27E1B76270E8__INCLUDED_)
- #define AFX_MAINFRM_H__CDDEFF07_5F50_41E9_B306_27E1B76270E8__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////
- #include ".CoolBarCoolTabCtrl.h"
- /////////////////
- class CMainFrame : public CFrameWnd
- {
-
- protected: // create from serialization only
- CMainFrame();
- DECLARE_DYNCREATE(CMainFrame)
- // Attributes
- public:
- CCoolBar m_wndMyBar1; //停靠左边窗口
- CCoolBar m_wndMyBar2; //停靠下边窗口
- CCoolTabCtrl m_TabCtrl; //左边窗口的TAB
- CListCtrl m_MsgList; //底窗口的消息列表框
- CImageList m_ToolBar;
- CImageList m_GrayToolBar;
- BOOL IsCmmConnect;
- BOOL IsReflashMsg;
- BOOL IsFrameCreat;
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMainFrame)
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void SetCmmPort();
- void DisplayEvent(UINT nflag,CString s2);
- void UpdateYMGrid();
- void UpdateYCGrid();
- void UpdateYXGrid();
- void DrawGrid();
- virtual ~CMainFrame();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected: // control bar embedded members
- CStatusBar m_wndStatusBar;
- CToolBar m_wndToolBar;
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMainFrame)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnSetCmmPort();
- afx_msg void OnSetProtocol();
- afx_msg void OnConnectCmm();
- afx_msg void OnDisconncmm();
- afx_msg void OnUpdateConcmm(CCmdUI* pCmdUI);
- afx_msg void OnUpdateDisconcmm(CCmdUI* pCmdUI);
- afx_msg void OnClose();
- afx_msg void OnViewData();
- afx_msg void OnViewMessage();
- afx_msg void OnUpdateViewData(CCmdUI* pCmdUI);
- afx_msg void OnUpdateViewMessage(CCmdUI* pCmdUI);
- afx_msg void OnPauseDsp();
- afx_msg void OnReflashDsp();
- afx_msg void OnUpdatePauseDsp(CCmdUI* pCmdUI);
- afx_msg void OnUpdateReflashDsp(CCmdUI* pCmdUI);
- afx_msg void OnClearDsp();
- afx_msg void OnSize(UINT nType, int cx, int cy);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MAINFRM_H__CDDEFF07_5F50_41E9_B306_27E1B76270E8__INCLUDED_)