mywcdlg.h

来自「经典C++书籍钱能C++书籍例子代码实例」· C头文件 代码 · 共 61 行

H
61
字号
// MyWcDlg.h : header file
//

#if !defined(AFX_MYWCDLG_H__66D38267_3822_11D7_829B_9E6478685947__INCLUDED_)
#define AFX_MYWCDLG_H__66D38267_3822_11D7_829B_9E6478685947__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CMyWcDlg dialog
#include  "WCSock.h"
class CMyWcDlg : public CDialog
{
// Construction
public:
	CMyWcDlg(CWnd* pParent = NULL);	// standard constructor
	CWCSock  sockClient;   
	_DATA m_Dat;

	LRESULT OnReceive(WPARAM wparam,LPARAM lParam);
// Dialog Data
	//{{AFX_DATA(CMyWcDlg)
	enum { IDD = IDD_MYWC_DIALOG };
	CListBox	m_ctlSent;
	CListBox	m_ctlRecvd;
	int		m_nPort;
	CString	m_server_name;
	CString	m_client_name;
	CString	m_send_info;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyWcDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMyWcDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnConnect();
	afx_msg void OnClose();
	afx_msg void OnSend();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYWCDLG_H__66D38267_3822_11D7_829B_9E6478685947__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?