Leaked source code of windows server 2003
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.1 KiB

  1. #ifndef _TRAYCMN_H
  2. #define _TRAYCMN_H
  3. //
  4. // CNotificationItem - encapsulate the data needed to communicate between the tray
  5. // and the tray properties dialog
  6. //
  7. #include <shpriv.h>
  8. typedef struct tagTNPersistStreamData TNPersistStreamData;
  9. class CNotificationItem : public NOTIFYITEM
  10. {
  11. public:
  12. CNotificationItem();
  13. CNotificationItem(const NOTIFYITEM& no);
  14. CNotificationItem(const CNotificationItem& no);
  15. CNotificationItem(const TNPersistStreamData* ptnpd);
  16. ~CNotificationItem();
  17. inline void _Init();
  18. void _Free();
  19. const CNotificationItem& operator=(const TNPersistStreamData* ptnpd);
  20. const CNotificationItem& operator=(const CNotificationItem& ni);
  21. BOOL operator==(CNotificationItem& ni) const;
  22. void CopyNotifyItem(const NOTIFYITEM& no, BOOL bInsert = TRUE);
  23. void CopyPTNPD(const TNPersistStreamData* ptnpd);
  24. inline void CopyBuffer(LPCTSTR lpszSrc, LPTSTR * plpszDest);
  25. inline void SetExeName(LPCTSTR lpszExeName);
  26. inline void SetIconText(LPCTSTR lpszIconText);
  27. };
  28. #endif // _TRAYCMN_H