mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.0 KiB
38 lines
1.0 KiB
#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
|
|
|