MainFrm.h
上传用户:yffx2008
上传日期:2014-10-12
资源大小:12414k
文件大小:3k
- // MainFrm.h : interface of the CMainFrame class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MAINFRM_H__58804DE9_631B_11D8_B346_0060975FFAEE__INCLUDED_)
- #define AFX_MAINFRM_H__58804DE9_631B_11D8_B346_0060975FFAEE__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "ListCtrlEx.h"
- #include "TreeCtrlEx.h"
- class CMainFrame : public CMDIFrameWnd
- {
- DECLARE_DYNAMIC(CMainFrame)
- public:
- CMainFrame();
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMainFrame)
- // public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- //}}AFX_VIRTUAL
- // Implementation
- public:
-
-
- virtual ~CMainFrame();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected: // control bar embedded members
- CStatusBar m_wndStatusBar;
- CImageList m_ilTB;
- CToolBar m_wndToolBar;
- static int m_number; //计算接收短信次数
- CCoolBar m_wndMyBar1; ///我们将它作为左边的窗口
- CCoolBar m_wndMyBar2; ///停靠在下方的窗口
- public:
- CTreeCtrlEx m_wndTree1; //放在右边的树状控件
- CTreeCtrlEx m_wndTree2; //放在右边的树状控件
- HTREEITEM m_pTreeItem1;
- HTREEITEM m_pTreeItem2;
- CListCtrlEx m_wndListCtrl; //放在下方的列表控件
- CCoolTabCtrl m_wndTabCtrl; //Tabctrl 控件
- public:
- void EditTreeItem(HTREEITEM hTreeItem,bool bControl=true);
- void EditTreeItem(bool bControl=true);
- void AddTreeItem(CString strDriver,CString strVehicleNO);
- void DeleteTreeItem(CString strVehicleNO);
- void InsertTreeItem(CString strVehiclePhone="");
- void Insert2ListCtrl(CString strVehicleNo,
- CString strVehicleDriver,
- CString strTime,
- CString strSpeed,
- CString strLongitude,
- CString strLatitude,
- CString strState,
- CString strTelNo,
- CString strPosition);
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMainFrame)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnViewcar();
- afx_msg void OnUpdateViewcar(CCmdUI* pCmdUI);
- afx_msg void OnViewbottombar();
- afx_msg void OnUpdateViewbottombar(CCmdUI* pCmdUI);
- afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnSrelogin();
- afx_msg void OnUpdateSrelogin(CCmdUI* pCmdUI);
- afx_msg void OnLoginInfo();
- afx_msg void OnUpdateLoginInfo(CCmdUI* pCmdUI);
- //}}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__58804DE9_631B_11D8_B346_0060975FFAEE__INCLUDED_)