wapisdlg.h
来自「VC++高级编程技巧与示例」· C头文件 代码 · 共 68 行
H
68 行
// WAPISDlg.h : header file
//
#if !defined(AFX_WAPISDLG_H__E70CF0E5_874A_4F86_8C5B_A5702BF39D7C__INCLUDED_)
#define AFX_WAPISDLG_H__E70CF0E5_874A_4F86_8C5B_A5702BF39D7C__INCLUDED_
#include "HMTSocket.h" // Added by ClassView
#include "PortDlg.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CWAPISDlg dialog
UINT SrvrThread(LPVOID pParam);
typedef struct{
char m_strName[255]; //客户名字;
char m_strAction[255];//当前操作;
BOOL m_bOnline; //客户是否在线;
BOOL m_bAngular; //是否是角度制;
double m_dbData; //数据;
}_DATA;
class CWAPISDlg : public CDialog
{
// Construction
public:
CPortDlg m_PortDlg;
unsigned int m_Port;
CMTSocket m_Sock;
_DATA m_data;
CWAPISDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CWAPISDlg)
enum { IDD = IDD_WAPIS_DIALOG };
CListBox m_List1;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWAPISDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CWAPISDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WAPISDLG_H__E70CF0E5_874A_4F86_8C5B_A5702BF39D7C__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?