📄 chatroomclientdlg.h
字号:
// ChatRoomClientDlg.h : 头文件
//
#pragma once
#include "ClientChatSocket.h"
#include "afxwin.h"
// CChatRoomClientDlg 对话框
class CChatRoomClientDlg : public CDialog
{
// 构造
public:
CChatRoomClientDlg(CWnd* pParent = NULL); // 标准构造函数
// 对话框数据
enum { IDD = IDD_CHATROOMCLIENT_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
// 实现
protected:
HICON m_hIcon;
// 生成的消息映射函数
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
CString m_strClientInfo;
CString m_strName;
CListBox m_ctrlChatInfo;
afx_msg void OnConnect();
afx_msg void OnDisconnect();
afx_msg void OnCancel();
afx_msg void OnSendinfo();
BOOL ConnectServer(CClientChatSocket* pSocket);
void GetSocketMsg(CClientChatSocket* pSocket);
UINT m_uintPortAddress;
CString m_strServerAddress;
CClientChatSocket* m_pSocket;
CButton m_ctrlConnect;
CButton m_ctrlDisconnect;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -