tooltip.h
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. //\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\
  2. //
  3. // tooltip.h 
  4. //
  5. //   Tool tip interface for items.
  6. //
  7. //   History:
  8. //
  9. //       4/21/97  edwardp   Created.
  10. //
  11. ////////////////////////////////////////////////////////////////////////////////
  12. //
  13. // Check for previous includes of this file.
  14. //
  15. #ifndef _TOOLTIP_H_
  16. #define _TOOLTIP_H_
  17. //
  18. // Class definition for the item context menu class.
  19. //
  20. class CQueryInfo : public IQueryInfo
  21. {
  22. //
  23. // Methods
  24. //
  25. public:
  26.     // Constructor
  27.     CQueryInfo(PCDFITEMIDLIST pcdfidl,
  28.              IXMLElementCollection* pIXMLElementCollection);
  29.     CQueryInfo(IXMLElement* pIXMLElement, BOOL fHasSubItems);
  30.     // IUnknown
  31.     STDMETHODIMP         QueryInterface(REFIID, void **);
  32.     STDMETHODIMP_(ULONG) AddRef(void);
  33.     STDMETHODIMP_(ULONG) Release(void);
  34.     // IQueryInfo methods.
  35.     STDMETHODIMP GetInfoTip(DWORD dwFlags, WCHAR **ppwszTip);
  36.     STDMETHODIMP GetInfoFlags(DWORD *pdwFlags);
  37. private:
  38.     // Destructor.
  39.     ~CQueryInfo(void);
  40. //
  41. // Member variables.
  42. //
  43. private:
  44.     ULONG           m_cRef;
  45.     IXMLElement*    m_pIXMLElement;
  46.     BOOL            m_fHasSubItems;
  47. };
  48. #endif // _TOOLTIP_H_