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

64 lines
1.2 KiB
C++

//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
//
// tooltip.h
//
// Tool tip interface for items.
//
// History:
//
// 4/21/97 edwardp Created.
//
////////////////////////////////////////////////////////////////////////////////
//
// Check for previous includes of this file.
//
#ifndef _TOOLTIP_H_
#define _TOOLTIP_H_
//
// Class definition for the item context menu class.
//
class CQueryInfo : public IQueryInfo
{
//
// Methods
//
public:
// Constructor
CQueryInfo(PCDFITEMIDLIST pcdfidl,
IXMLElementCollection* pIXMLElementCollection);
CQueryInfo(IXMLElement* pIXMLElement, BOOL fHasSubItems);
// IUnknown
STDMETHODIMP QueryInterface(REFIID, void **);
STDMETHODIMP_(ULONG) AddRef(void);
STDMETHODIMP_(ULONG) Release(void);
// IQueryInfo methods.
STDMETHODIMP GetInfoTip(DWORD dwFlags, WCHAR **ppwszTip);
STDMETHODIMP GetInfoFlags(DWORD *pdwFlags);
private:
// Destructor.
~CQueryInfo(void);
//
// Member variables.
//
private:
ULONG m_cRef;
IXMLElement* m_pIXMLElement;
BOOL m_fHasSubItems;
};
#endif // _TOOLTIP_H_