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

📄 bqqdlg.h

📁 该源代码实现了局域网内的信息传递、文件传输
💻 H
字号:
// BQQDlg.h : header file
//

#if !defined(AFX_BQQDLG_H__9A7A8FFD_FDB5_4146_B78D_99DAC1B0BC4D__INCLUDED_)
#define AFX_BQQDLG_H__9A7A8FFD_FDB5_4146_B78D_99DAC1B0BC4D__INCLUDED_

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

#include "mysocket.h"
#include "myeditctrl.h"
#include "xShadeButton.h"
#include	"DimEditCtrl.h"
#include "NTService.h"
/////////////////////////////////////////////////////////////////////////////
// CBQQDlg dialog

class CBQQDlg : public CDialog
{
// Construction
public:
	void DoClose();
	BOOL SendTheMsg(CString targ);
	BOOL FormatAddr();
	unsigned long GetHsByName(CString name);
	BOOL ConnectServer(CString user);
	BOOL CreateListenerSock();
	CString hostName;
	CString hostIP;
	CString sendTarget;
	CString fileName;
	CString file;
	BOOL isHistory;
	CMySocket sockClient;
	CMySocket sockSvr;
	CString sendMessageStr;
	BOOL hasAttachment;
	BOOL isAnonymous;
	BOOL first;
	CPropertySheet addrSheet;
	CBQQDlg(CWnd* pParent = NULL);	// standard constructor
	UINT m_nTimer;
	UINT m_nTimer0;
	BOOL HidenIt();
	LRESULT OnLiben(WPARAM wParam, LPARAM lParam);
	LRESULT OnHotKey(WPARAM wParam,LPARAM lParam);
	void SetMessage(LPBYTE buffer,  DWORD dwNumberOfBytesRead);
	void OnClear();
// Dialog Data
	//{{AFX_DATA(CBQQDlg)
	enum { IDD = IDD_BQQ_DIALOG };
	CDimEditCtrl	m_AddrEdit;
	CxShadeButton	m_Send;
	CxShadeButton	m_Addr;
	CxShadeButton	m_Anony;
	CxShadeButton	m_Param;
	CxShadeButton	m_InputMsg;
	CxShadeButton	m_IncAttach;
	CxShadeButton	m_History;
	//CxShadeButton	m_Clear;
	CxShadeButton	m_Attach;
	CMyEditCtrl	m_InOutCtrl;
	CString	m_InOutMsg;
	//}}AFX_DATA

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

// Implementation
protected:
	BOOL m_bClose;
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CBQQDlg)
	virtual BOOL OnInitDialog();
	virtual void OnCancel();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnHistory();
	
	afx_msg void OnParam();
	afx_msg void OnAttach();
	afx_msg void OnSend();
	afx_msg void OnAddress();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnInputmsg();
	afx_msg void OnSetMessage(WPARAM size, LPARAM lParam);
	afx_msg void OnClose();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg BOOL OnQueryEndSession();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_BQQDLG_H__9A7A8FFD_FDB5_4146_B78D_99DAC1B0BC4D__INCLUDED_)

⌨️ 快捷键说明

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