📄 mfctalkdlg.h
字号:
// MFCTALKDlg.h : header file
//
#if !defined(AFX_MFCTALKDLG_H__BB629B61_822E_4DFA_875B_C2088B87C77B__INCLUDED_)
#define AFX_MFCTALKDLG_H__BB629B61_822E_4DFA_875B_C2088B87C77B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DataSocket.h"
#include "ListenScoket.h"
/////////////////////////////////////////////////////////////////////////////
// CMFCTALKDlg dialog
class CMFCTALKDlg : public CDialog
{
// Construction
public:
CMFCTALKDlg(CWnd* pParent = NULL); // standard constructor
void receive();
void acceptserver();
BOOL isServer;
CListenScoket m_listensocket;
CDataSocket m_serversocket;
CDataSocket m_clientsocket;
// Dialog Data
//{{AFX_DATA(CMFCTALKDlg)
enum { IDD = IDD_MFCTALK_DIALOG };
CButton m_createserver;
CButton m_connectionserver;
CString m_addr;
UINT m_cport;
UINT m_sport;
CString m_sendinfo;
CString m_showreceiveinfo;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMFCTALKDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CMFCTALKDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK();
afx_msg void OnCreatesreverBtn();
afx_msg void OnConnectserverBtn();
afx_msg void OnSendBtn();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MFCTALKDLG_H__BB629B61_822E_4DFA_875B_C2088B87C77B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -