📄 netelectroncltdlg.h
字号:
// NetElectronCltDlg.h : header file
//
#if !defined(AFX_NetElectronCltDLG_H__C2BB96B9_D14C_4928_BB1B_81BDCAD2D308__INCLUDED_)
#define AFX_NetElectronCltDLG_H__C2BB96B9_D14C_4928_BB1B_81BDCAD2D308__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "SockSrv.h"
/////////////////////////////////////////////////////////////////////////////
// CNetElectronCltDlg dialog
class CNetElectronCltDlg : public CDialog
{
// Construction
public:
void OnClose();
void EnableCtrlWindow(BOOL bCommunicating);
BOOL ConnectSrv();
CSockSrv m_Sock;
CNetElectronCltDlg(CWnd* pParent = NULL); // standard constructor
~CNetElectronCltDlg();
void GetCurStatus( t_JiaDianState *pJiaDianState);
void SetNewStatus( t_JiaDianState *pJiadianState);
// Dialog Data
//{{AFX_DATA(CNetElectronCltDlg)
enum { IDD = IDD_NetElectronClt_DIALOG };
CXPButton m_btnCommit;
CXPButton m_btnConnect;
CListBox m_ListLogInfo;
int m_nKongTiaoOpenOrClose;
int m_nWaterHeaterOpenOrClose;
UINT m_uiPort;
CString m_csSrvIP;
int m_nKongTiaoTemperature;
UINT m_nCurtainTiming;
UINT m_nMicroWaveOvenTiming;
int m_nWaterHeaterTemperature;
int m_nCurtainOpenOrClose;
int m_nMicroWaveOvenOpenOrClose;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNetElectronCltDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CNetElectronCltDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonConnect();
afx_msg void OnNewStatus();
afx_msg void OnButtonCommit();
afx_msg void OnDblclkListLogInfo();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
BOOL SendSockData(char *pData, int nSize);
};
extern CNetElectronCltDlg *g_pNetElectronCltDlg;
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_NetElectronCltDLG_H__C2BB96B9_D14C_4928_BB1B_81BDCAD2D308__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -