📄 lancommuniondlg.h
字号:
// LANCommunionDlg.h : header file
//
#if !defined(AFX_LANCOMMUNIONDLG_H__6D6062A2_BBA5_4BB5_A4EF_12B108305EC3__INCLUDED_)
#define AFX_LANCOMMUNIONDLG_H__6D6062A2_BBA5_4BB5_A4EF_12B108305EC3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ConstDefine.h"
#include "AddUserDlg.h"
#include "UseageDlg.h"
#include "UserInfo.h"
#include "FileArrive.h"
#include "TransportInfoDlg.h"
/////////////////////////////////////////////////////////////////////////////
#define WM_TIMER_SENDCOUNT WM_USER+102
#define WM_TIMER_RECVCOUNT WM_USER+103
#define UM_NOTIFY WM_USER+104
#define UM_CREATE_TRANSPORTDLG WM_USER+105
#define UM_DELETE_DLG WM_USER+106
/////////////////////////////////////////////////////////////////////////////
// CLANCommunionDlg dialog
struct CHAT
{
SOCKET sock;
};
/////////////////////////////////////////////////////////////////////////////
class CLANCommunionDlg : public CDialog
{
// Construction
public:
CTransportInfoDlg* CreateTranspotrInfoDlg( );
bool GetIPAddr(CString& s);
void ReadUserInfo();
void SaveUserInfo();
void BroadCastHello();
void BroadCastExit( );
void FlushListBox();
// void PreSaveFile(CSocket& sock);
void InitChat( );
void InitBSocket( );
void GetExtName(char* Name,char* p);
CLANCommunionDlg(CWnd* pParent = NULL); // standard constructor
~CLANCommunionDlg( );
SOCKET m_sockChat;
// Dialog Data
//{{AFX_DATA(CLANCommunionDlg)
enum { IDD = IDD_LANCOMMUNION_DIALOG };
CListCtrl m_list;
CEdit m_editSendChat;
CButton m_Clear;
CButton m_Quit;
CButton m_SendChat;
CButton m_SendFile;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLANCommunionDlg)
public:
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CLANCommunionDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonSendFile();
afx_msg void OnButtonSendChat();
afx_msg void OnButtonClear();
afx_msg void OnButtonQuit();
afx_msg void OnClose();
afx_msg void OnAddUser();
afx_msg void OnUsage();
afx_msg void OnBtnFlush();
afx_msg void OnMaxtextEditReceive();
afx_msg void OnMaxtextEditSandchat();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnPopupQuit();
afx_msg void OnPopupAdduser();
afx_msg void OnPopupAbout();
//}}AFX_MSG
afx_msg void OnDropFiles( HDROP hDropInfo );
afx_msg void OnNotifyIcon(WPARAM,LPARAM);
afx_msg void OnCreateTransportInfoDlg(WPARAM,LPARAM);
afx_msg void OnDeleteDlg(WPARAM,LPARAM);
DECLARE_MESSAGE_MAP()
private:
SOCKET m_sockBRecv;
SOCKET m_sockBSend;
CObArray m_userInfo;
NOTIFYICONDATA m_nid; //托盘结构体
CMenu m_menu; //弹出菜单
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LANCOMMUNIONDLG_H__6D6062A2_BBA5_4BB5_A4EF_12B108305EC3__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -