⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 prichatdlg.h

📁 利用Visual C++的Windows SOCKET网络编程实现局域网内正在使用本程序的所有主机的群聊、两主机之间的点对点聊天和文件传送功能
💻 H
字号:
#if !defined(AFX_PRICHATDLG_H__96750BF1_0951_4F5E_A8BB_4F4B7474E461__INCLUDED_)
#define AFX_PRICHATDLG_H__96750BF1_0951_4F5E_A8BB_4F4B7474E461__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PriChatDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CPriChatDlg dialog

class CChatDlg;
class CPriChatDlg : public CDialog
{
// Construction
public:
	void CloseDlg();		//关闭对话框
	CString m_savePathName;	//接收的文件保存完整路径
	void SetProgress(CString *str,BOOL b);
	//int64 m_fileSize;
	CString m_fileTitle;	//将要发送的文件名
	void FileButtonCtrl(short ch);	//控制按钮的Enable与Disable
	CString m_pathName;		//将要发送的文件的完整路径
	CFile m_myFile;			//将要发送的文档
	void SetRecvText(CString *pStr);
	CChatDlg* m_ptrDlg;		//指向主对话框的指针
	//SOCKADDR_IN m_addr;
	CString m_host_name;	//对应用户主机名
	CString m_host_IP;		//对应用户IP
	CPriChatDlg(CString m_host_IP,CString m_host_name,CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CPriChatDlg)
	enum { IDD = IDD_PRICHAR_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CPriChatDlg)
	afx_msg void OnSend();
	afx_msg void OnBtnFileSend();
	afx_msg void OnBtnFileRecv();
	afx_msg void OnBtnFileRefuse();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_PRICHATDLG_H__96750BF1_0951_4F5E_A8BB_4F4B7474E461__INCLUDED_)

⌨️ 快捷键说明

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