// MainFrm.h : interface of the CMainFrame class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_MAINFRM_H__8736AF58_8550_4F08_8B88_A8A21839142B__INCLUDED_) #define AFX_MAINFRM_H__8736AF58_8550_4F08_8B88_A8A21839142B__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CDevMngFrame; class CDataMngFrame; class CSptMngFrame; class CScheduler; class CDialUpgDeviceInfo; 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_msg LRESULT PreNetResponse(WPARAM wParam, LPARAM lParam); //}}AFX_VIRTUAL // Implementation public: CToolBar* GetToolBar(void); CDevMngFrame* m_pDevMngFrm; CSptMngFrame* m_pSptMngFrm; CDataMngFrame* m_pDataMngFrm; virtual ~CMainFrame(); CString GetGeoMativeVersion(); void GetLastErrorEx(); void SetStatusText(CString strText){m_wndStatusBar.SetPaneText(0, strText.GetBuffer(0));} CDialUpgDeviceInfo* m_pUpgDevInfo; static void NotifyDevInfo(LPVOID lParam, LPARAM rParam, LPVOID pWnd); void OnLineSynData(); //在线同步接口 #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) virtual BOOL LoadFrame(UINT nIDResource, DWORD dwDefaultStyle, CWnd* pParentWnd, CCreateContext* pContext = NULL); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnMngDataWin(); afx_msg void OnMngExecWin(); afx_msg void OnMngDevWin(); afx_msg LRESULT OnSchedule(WPARAM wParam, LPARAM lParam); afx_msg LRESULT OnRefresh(WPARAM wParam, LPARAM lParam); afx_msg LRESULT OnNewLink(WPARAM wParam, LPARAM lParam); afx_msg LRESULT OnBreakLine(WPARAM wParam, LPARAM lParam); afx_msg LRESULT OnUpgGeomative(WPARAM wParam, LPARAM lParam); afx_msg void OnFileExp(); afx_msg void OnFileImp(); afx_msg void OnTestrspWin(); afx_msg void OnSynWin(); afx_msg void OnLoggingTest(); afx_msg void OnSetLinkUsb(); afx_msg void OnSetLinkBluetooth(); afx_msg void OnHelpUpg(); afx_msg LRESULT CloseWindows(WPARAM wParam, LPARAM lParam); afx_msg LRESULT DetectLine(WPARAM wParam, LPARAM lParam); afx_msg void OnLicenseUpg(); afx_msg void OnPasswordManage(); afx_msg BOOL OnDeviceChange(UINT nEventType, DWORD dwData); afx_msg LRESULT OnClearUpgInfo(WPARAM wParam, LPARAM lParam); afx_msg LRESULT OnShowUpgInfo(WPARAM wParam, LPARAM lParam); afx_msg void OnShowGeoWebsite(); afx_msg void OnChangeChinese(); afx_msg void OnChangeEnglish(); afx_msg BOOL OnToolTipText(UINT, NMHDR* pNMHDR, LRESULT* pResult); afx_msg LRESULT OnChangeLanguage(WPARAM wParam, LPARAM lParam); afx_msg LRESULT OnMsgNotifyDeviceOnOrOff(WPARAM wParam, LPARAM lParam); afx_msg void OnTimer(UINT nIDEvent); afx_msg LRESULT OnRefreshMainWndMenu(WPARAM wParam, LPARAM lParam); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: void GetFileFromHost(CDevice *pDevice); void RefreshFrameWindows(); CScheduler* m_pScheduler; bool m_bIsShowUpgText; protected: bool UsbRegistNotify(void); void ModifyMenuLanguage(int iLanguage); //登录响应消息 BOOL OnLoginResponse(WPARAM wParam, LPARAM lParam); //上传设备市场数据到云端 static UINT UploadDevMarketDataToCloudThread(LPVOID lParam); }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_MAINFRM_H__8736AF58_8550_4F08_8B88_A8A21839142B__INCLUDED_)