📄 chatdlg.h
字号:
#if !defined(AFX_CHATDLG_H__AD3B5012_F00F_4315_A0DC_1AEF37A0804F__INCLUDED_)
#define AFX_CHATDLG_H__AD3B5012_F00F_4315_A0DC_1AEF37A0804F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ChatDlg.h : header file
#include "MainDlg.h"
/////////////////////////////////////////////////////////////////////////////
// CChatDlg dialog
enum FileAcceptQuery{faqInit = 0, faqYes, faqNo};
class CChatDlg : public CDialog
{
// Construction
public:
void SetMyWndNull();
void ShowFileTransferInfo(CString strFileInfo);
void InsertNewChatInfo(CString strChatInfo);
void SetMutexNull();
void FileTransfer();
UINT GetFileTransferChoose();
HANDLE GetMutex();
void InitFileAcceptQuery();
CMainDlg *m_pMainDlg;
CChatDlg(CWnd* pParent = NULL); // standard constructor
tagClientInfo* m_pUserNode;
// Dialog Data
//{{AFX_DATA(CChatDlg)
enum { IDD = IDD_CHATDLG };
CStatic m_urFace;
CString m_strUserChat;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CChatDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CChatDlg)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnPaint();
afx_msg void OnButClose();
virtual void OnOK();
virtual void OnCancel();
afx_msg void OnButSend();
virtual BOOL OnInitDialog();
afx_msg void OnDestroy();
afx_msg void OnBUTCLOSEChat();
afx_msg void OnButMin5();
afx_msg void OnButClose5();
afx_msg void OnFiletransfer();
afx_msg void OnClose();
afx_msg void OnBtnFyes();
afx_msg void OnBtnFno();
afx_msg void OnBtnCancle();
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
afx_msg void OnChatInfo(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
private:
CRgn m_rgn;
// HWND m_hChatWnd;
//自定义按纽
CBitmapButton m_myButtonClose;
CBitmapButton m_myButtonMin;
CBitmapButton m_myButtonSend;
CBitmapButton m_myButtonCloseWin;
CBitmapButton m_myButtonFile;
CBitmapButton m_myButtonAccept;
CBitmapButton m_myButtonRefuse;
CBitmapButton m_myButtonCancle;
UINT m_faqStatus;
HANDLE m_hMutex;
CToolTip m_ttToolTip;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CHATDLG_H__AD3B5012_F00F_4315_A0DC_1AEF37A0804F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -