myqqdlg.h

来自「自己编写的一个聊天软件」· C头文件 代码 · 共 66 行

H
66
字号
// MyQQDlg.h : header file
//

#if !defined(AFX_MYQQDLG_H__61884963_E3A2_447A_B162_85A654677B9C__INCLUDED_)
#define AFX_MYQQDLG_H__61884963_E3A2_447A_B162_85A654677B9C__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CMyQQDlg dialog

class CMyQQDlg : public CDialog
{
// Construction
public:
	CMyQQDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CMyQQDlg)
	enum { IDD = IDD_MYQQ_DIALOG };
	CListBox	m_listMsg;
	//}}AFX_DATA

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

	LRESULT OnAccept(WPARAM wParam, LPARAM lParam);
	LRESULT OnReadClose(WPARAM wParam, LPARAM lParam);
	
//Operations
public:
	void CloseClientList();
	
// Implementation
protected:
	HICON m_hIcon;

	SOCKET m_sockServer;
	SOCKADDR_IN m_sockServerAddr;

	CUIntArray m_sockClientArray;
	Msg msg;

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

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

#endif // !defined(AFX_MYQQDLG_H__61884963_E3A2_447A_B162_85A654677B9C__INCLUDED_)

⌨️ 快捷键说明

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