SystemTray.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:1k
源码类别:
P2P编程
开发平台:
Visual C++
- // SystemTray.h: interface for the CSystemTray class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SYSTEMTRAY_H__3873A61F_E818_40D2_9555_D59F780F93EB__INCLUDED_)
- #define AFX_SYSTEMTRAY_H__3873A61F_E818_40D2_9555_D59F780F93EB__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CSystemTray
- {
- public:
- CSystemTray();
- virtual ~CSystemTray();
- BOOL Create(CWnd* pParent, UINT uCallbackMessage, LPCTSTR szToolTip,
- HICON icon, UINT uID);
- BOOL SetTooltipText(LPCTSTR pszTooltipText);
- void MoveToRight();
- void RemoveIcon();
- void HideIcon();
- void ShowIcon();
- // Default handler for tray notification message
- virtual LRESULT OnTrayNotification(WPARAM uID, LPARAM lEvent);
- private:
- BOOL m_bEnabled; // does O/S support tray icon?
- BOOL m_bHidden; // Has the icon been hidden?
- NOTIFYICONDATA m_tnd;
- UINT m_DefaultMenuItemID;
- BOOL m_DefaultMenuItemByPos;
- };
- #endif // !defined(AFX_SYSTEMTRAY_H__3873A61F_E818_40D2_9555_D59F780F93EB__INCLUDED_)