Windows-Server-2003/shell/explorer/traycmn.h

39 lines
1.0 KiB
C
Raw Normal View History

2024-08-04 01:28:15 +02:00
#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