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

📄 systemtray.h

📁 我们的网管程序的后台软件,主要是网络方面的内容.
💻 H
字号:
#ifndef _INCLUDED_SYSTEMTRAY_H_
#define _INCLUDED_SYSTEMTRAY_H_

/////////////////////////////////////////////////////////////////////////////
// CSystemTray window

class CSystemTray : public CObject
{
// Construction/destruction
public:
	CSystemTray();
	CSystemTray(CWnd* pWnd, UINT uCallbackMessage, LPCTSTR szTip, HICON icon, UINT uID);
	virtual ~CSystemTray();

// Operations
public:
	CFrameWnd * m_pFrame;
	BOOL Enabled() { return m_bEnabled; }
	BOOL Visible() { return !m_bHidden; }

	//Create the tray icon
	Create(CWnd* pWnd, UINT uCallbackMessage, LPCTSTR szTip, HICON icon, UINT uID);

	//Change or retrieve the Tooltip text
	BOOL SetTooltipText(LPCTSTR pszTooltipText);
	BOOL SetTooltipText(UINT nID);
	CString GetTooltipText() const;

	//Change or retrieve the icon displayed
	BOOL SetIcon(HICON hIcon);
	BOOL SetIcon(LPCTSTR lpIconName);
	BOOL SetIcon(UINT nIDResource);
	BOOL SetStandardIcon(LPCTSTR lpIconName);
	BOOL SetStandardIcon(UINT nIDResource);
	HICON GetIcon() const;
	void HideIcon();
	void ShowIcon();
	void RemoveIcon();
	void MoveToRight();

	//Change or retrieve the window to send notification messages to
	BOOL SetNotificationWnd(CWnd* pNotifyWnd);
	CWnd* GetNotificationWnd() const;

//Default handler for tray notification message

// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSystemTray)
//}}AFX_VIRTUAL

// Implementation
protected:
	BOOL m_bEnabled; // does O/S support tray icon?
	BOOL m_bHidden; // Has the icon been hidden?
	NOTIFYICONDATA m_tnd;

	DECLARE_DYNAMIC(CSystemTray)
};


#endif

⌨️ 快捷键说明

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