fast/Platform/AgvMainDialog.h

69 lines
1.6 KiB
C
Raw Normal View History

2025-01-20 10:30:01 +08:00
#pragma once
#include "afxcmn.h"
#include "ModuleListCtrl.h"
class HttpServiceListener;
class CRobotClientDlg;
class CTransportClientDlg;
class CStackerClientDlg;
class CModuleProcess;
// CAgvMainDialog <20>Ի<EFBFBD><D4BB><EFBFBD>
#define WM_SYSTEMTRAY WM_USER+5
class CAgvMainDialog : public CDialogEx
{
DECLARE_DYNAMIC(CAgvMainDialog)
public:
CAgvMainDialog(CWnd* pParent = NULL); // <20><>׼<EFBFBD><D7BC><EFBFBD><EFBFBD><ECBAAF>
virtual ~CAgvMainDialog();
// <20>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_WCS_MAIN_DIALOG };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧<><D6A7>
DECLARE_MESSAGE_MAP()
public:
afx_msg LRESULT OnSystemtray(WPARAM wParam, LPARAM lParam);
//CTabCtrl m_SubTab;
CHttpClient m_httpClient;
CDialog *m_pSubDlg[10];
int m_nDebug;
//int m_nSubDlg;
virtual BOOL OnInitDialog();
HttpServiceListener *httpServerListener;
CHttpService httpService;
BOOL StartHttpServer();
afx_msg void OnTrayShow();
afx_msg void OnTrayExit();
void InitModule();
void RefresModuleShow();
std::map<CString, CModuleProcess*> m_mapAllNormal;
CModuleProcess* GetModuleByName(CString strName);
CString UTF8ToMultiByte(const std::string& utf8String);
private:
NOTIFYICONDATA NotifyIcon; //ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
public:
afx_msg void OnClose();
CModuleListCtrl m_ModuleListCtrl;
afx_msg void OnNMRClickListModule(NMHDR *pNMHDR, LRESULT *pResult);
LRESULT OnUpdateModule(WPARAM wparam, LPARAM lparam);
afx_msg void OnNMDblclkListModule(NMHDR *pNMHDR, LRESULT *pResult);
void KillProcess(CString sExeName);
CEdit m_EditMultiLine;
void AddLog2Edit(CString strMsg);
};