windows-nt/Source/XPSP1/NT/shell/explorer/traycmn.h
2020-09-26 16:20:57 +08:00

39 lines
1 KiB
C++

#ifndef _TRAYCMN_H
#define _TRAYCMN_H
//
// CNotificationItem - encapsulate the data needed to communicate between the tray
// and the tray properties dialog
//
#include <shpriv.h>
typedef struct tagTNPersistStreamData TNPersistStreamData;
class CNotificationItem : public NOTIFYITEM
{
public:
CNotificationItem();
CNotificationItem(const NOTIFYITEM& no);
CNotificationItem(const CNotificationItem& no);
CNotificationItem(const TNPersistStreamData* ptnpd);
~CNotificationItem();
inline void _Init();
void _Free();
const CNotificationItem& operator=(const TNPersistStreamData* ptnpd);
const CNotificationItem& operator=(const CNotificationItem& ni);
BOOL operator==(CNotificationItem& ni) const;
void CopyNotifyItem(const NOTIFYITEM& no, BOOL bInsert = TRUE);
void CopyPTNPD(const TNPersistStreamData* ptnpd);
inline void CopyBuffer(LPCTSTR lpszSrc, LPTSTR * plpszDest);
inline void SetExeName(LPCTSTR lpszExeName);
inline void SetIconText(LPCTSTR lpszIconText);
};
#endif // _TRAYCMN_H