📄 netqqdlg.h
字号:
// NetQQDlg.h : header file
//
#if !defined(AFX_NETQQDLG_H__C378336B_839C_4045_84DC_FEC0DD1C0E3C__INCLUDED_)
#define AFX_NETQQDLG_H__C378336B_839C_4045_84DC_FEC0DD1C0E3C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ClntSock.h"
#include "MsgBag.h"
#include <Afxtempl.h>
#include "P2P.h"
#include "ToolTip.h"
/////////////////////////////////////////////////////////////////////////////
// CNetQQDlg dialog
#define WM_NETEVENT WM_USER + 1
#define WM_LOADINMAINDLG WM_USER + 2
#define WM_MIDMSG WM_USER + 3
#define WM_FILESHARE WM_USER + 4
#define WM_CHATINFO WM_USER + 5
#define WM_MEINFO WM_USER + 6
#define WM_SHOW WM_USER + 7
struct tagClientInfo
{
CString m_strUsrId;
CString m_strUsrName;
CString m_strIp;
CString m_strFace;
CString m_strFilePort;
CString m_strChatlog;
HWND m_hChatWnd;
HWND m_hUserInfoWnd;
CWnd* m_pChatWnd;
int m_nIndexInList;
////////////////////
//构造初始化所有成员
tagClientInfo()
{
m_strUsrId = "";
m_strUsrName = "";
m_strIp = "";
m_strFace = "";
m_strFilePort = "";
m_strChatlog = "";
m_hChatWnd = NULL;
m_hUserInfoWnd = NULL;
m_pChatWnd = NULL;
m_nIndexInList = -1;
}
};
class CNetQQDlg : public CDialog
{
// Construction
public:
CNetQQDlg(CWnd* pParent = NULL); // standard constructor
CP2P m_FT;
HANDLE GetMutex();
void DelClentList();
CClntSock& GetCClntSock();
static DWORD WINAPI RecvProc(LPVOID lpParam);
CList <tagClientInfo*, tagClientInfo* &> m_pClntList;
// Dialog Data
//{{AFX_DATA(CNetQQDlg)
enum { IDD = IDD_LOADDLG };
CStatic m_stcShowFace;
CComboBox m_cbFace;
CString m_strUserId;
CString m_strPassword;
CString m_strPort;
//}}AFX_DATA
DWORD m_dwIp;
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNetQQDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CNetQQDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
virtual void OnOK();
virtual void OnCancel();
afx_msg void OnSelchangeCbFace();
afx_msg void OnBtnLoad();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnClose();
afx_msg void OnBtnLogin();
afx_msg void OnBtnExit();
afx_msg void OnBtnClose();
afx_msg void OnBtnMin();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnBtnL();
//}}AFX_MSG
afx_msg void OnNetEvent(WPARAM wParam, LPARAM lParam);
afx_msg void OnLoadInMainDlg(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
private:
//void RecvProc(CString& strBuff);
CClntSock m_ClntSock;
HANDLE m_hMutex;
HWND m_hmainWndDlg;
CBitmapButton m_myButtonLoad;
CBitmapButton m_myButtonLogin;
CBitmapButton m_myButtonExit;
CBitmapButton m_myButtonClose;
CBitmapButton m_myButtonMin;
CToolTip m_ttToolTip;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_NETQQDLG_H__C378336B_839C_4045_84DC_FEC0DD1C0E3C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -