📄 userverdlg.h
字号:
// UServerDlg.h : header file
//
#if !defined(AFX_USERVERDLG_H__10480151_24F6_4629_B7C3_898C5951F188__INCLUDED_)
#define AFX_USERVERDLG_H__10480151_24F6_4629_B7C3_898C5951F188__INCLUDED_
#include "USocket.h" // Added by ClassView
//#include "Transmission.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
const UINT WM_US_MSGARRIVE=WM_USER+100;
const UINT WM_US_NOTIFYICON=WM_USER+101;
#define IDC_ReceiveMsg 1018
/////////////////////////////////////////////////////////////////////////////
// CUServerDlg dialog
class CTransmission;
////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// CColorEdit window
class CColorEdit : public CEdit
{
// Construction
public:
COLORREF m_FontColor; //字体颜色
COLORREF m_backgroundColor; //背景颜色
CBrush m_brush; //背景刷子对象
CColorEdit();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CColorEdit)
//}}AFX_VIRTUAL
// Implementation
public:
void SetBkColor(COLORREF crBkgnd);
void SetTextColor(COLORREF crText);
virtual ~CColorEdit();
// Generated message map functions
protected:
//{{AFX_MSG(CColorEdit)
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
class CUServerDlg : public CDialog
{
// Construction
public:
CColorEdit * m_pEdit;
BOOL m_bHideWnd;
void DeleteTrayIcon();
void AddTrayIcon();
NOTIFYICONDATA m_iconData;
BOOL m_bMsgNotice;
CTransmission *m_pTrans;
CUServerDlg(CWnd* pParent = NULL); // standard constructor
void FontSet(CWnd *pWnd,LPCSTR strFont, int Size);
void SetReceiveText(CString szReceiveMsg);
// Dialog Data
//{{AFX_DATA(CUServerDlg)
enum { IDD = IDD_USERVER_DIALOG };
CListBox m_listGroupMember;
CString m_ERemoteIP;
CString m_ESendMsg;
CString m_strReceiveMsg;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CUServerDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CUServerDlg)
virtual BOOL OnInitDialog();
afx_msg void VScroll();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBSendMsg();
afx_msg void OnCBroadcast();
afx_msg void OnCJoinGroup();
afx_msg void OnCPtoP();
virtual void OnOK();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnMsgNotice();
afx_msg void OnClose();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void CreateReceiveArea();
bool m_BroadcastFlag;
bool m_MulticastFlag;
bool m_JoinGroupFlag;
bool m_PtoPFlag;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_USERVERDLG_H__10480151_24F6_4629_B7C3_898C5951F188__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -