📄 proxydlg.h
字号:
// ProxyDlg.h : header file
//
#if !defined(AFX_PROXYDLG_H__D471296E_B248_4C3A_998E_BF6318DFDCF4__INCLUDED_)
#define AFX_PROXYDLG_H__D471296E_B248_4C3A_998E_BF6318DFDCF4__INCLUDED_
#include "DataStruct.h" // Added by ClassView
#include "TrayNotifyIcon.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CProxyDlg dialog
class CProxyDlg : public CDialog
{
// Construction
public:
void commsend(CSock5 SendData,int iLen);
char ProxyAddr[16];
void SendStatusQuery();
void ReConvertStr(char buf[], char newbuf[], int len);
unshort Get_CheckSum(char buf[], int len);
int AddFsynToBuf(char OldBuf[], char NewBuf[], int Len);
void commsend(CPktB SendData,int iLen);
unlong MyIp;
void ConvertIp();
void DoEvent(char buf[],int buflen);
LRESULT OnTrayNotification(WPARAM wParam, LPARAM lParam);
HICON m_hTrayIcon; //托盘图标
CTrayNotifyIcon m_TrayIcon;
char AlarmStr[100];
char AlarmTelephone[20];
int ComNumber;
BOOL Tcp_Write(int TcpLstIndex,BOOL ClientToServer,char *DataStr, int Len);
CString m_strTime;
CString m_strCurrentTime;
void GetCurrentTimeStr();
int LastLogHour;
char LogDir[200];
BOOL ConnectToServer(int ServerLstIndex,int TcpLstIndex);
void Tcp_Accept(UINT wParam, LONG lParam);
void SaveInformation(char strData[]);
char DataStr[200];
void Tcp_Read(UINT wParam, LONG lParam);
void Tcp_Close();
BOOL Tcp_Init();
void Variable_Release();
void Daylog_Close();
void Daylog_Check();
FILE * daylogfd;
BOOL Daylog_Init();
BOOL bWriteLog;
BOOL Variable_Init();
CTcpLst TcpLst;
BOOL ReadConfig();
CProxyDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CProxyDlg)
enum { IDD = IDD_PROXY_DIALOG };
CEdit m_Status;
CEdit m_Count;
CListCtrl m_List;
CButton m_Connect;
CButton m_Query;
CButton m_Enable;
CButton m_Disable;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CProxyDlg)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CProxyDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnClose();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnHide();
afx_msg void OnShow();
afx_msg void OnUpdateShow(CCmdUI* pCmdUI);
afx_msg void OnUpdateHide(CCmdUI* pCmdUI);
afx_msg void OnExit();
afx_msg void OnButtonDisable();
afx_msg void OnButtonEnable();
afx_msg void OnButtonQuery();
virtual void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PROXYDLG_H__D471296E_B248_4C3A_998E_BF6318DFDCF4__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -