📄 clientdlg.h
字号:
// ClientDlg.h : header file
//
#if !defined(AFX_CLIENTDLG_H__E4334E84_2F14_4418_92F6_0B5F396776FD__INCLUDED_)
#define AFX_CLIENTDLG_H__E4334E84_2F14_4418_92F6_0B5F396776FD__INCLUDED_
#include "fileini.h" // Added by ClassView
#include "cnComm.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CClientDlg dialog
#define WM_RECVDATA WM_USER+1
struct HANDLESTR
{
SOCKET sock;
SOCKADDR_IN addrSock;
HWND hwnd;
};
class CClientDlg : public CDialog
{
// Construction
public:
static bool m_isconn;
static DWORD WINAPI RecvProc(LPVOID lpParameter);
cnComm m_comMonitor;
SOCKADDR_IN addrSock;
SOCKET m_socket;
BOOL InitSocket();
// char buf[100];
// CSocket *pSocket;
CClientDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CClientDlg)
enum { IDD = IDD_CLIENT_DIALOG };
CButton m_connbtn;
CComboBox m_monitor3;
CComboBox m_monitor2;
CComboBox m_monitor1;
CString m_command;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CClientDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CFileini iniSet;
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CClientDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnClose();
afx_msg void OnSet();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnConn();
//}}AFX_MSG
afx_msg void OnRecvData(WPARAM wParam,LPARAM lParam);
DECLARE_MESSAGE_MAP()
private:
int m_status[3];
CString m_commands[3];
CString m_strmoni[3];
CString m_strAlarm;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CLIENTDLG_H__E4334E84_2F14_4418_92F6_0B5F396776FD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -