-
Notifications
You must be signed in to change notification settings - Fork 1
/
ChildToolTip.h
45 lines (35 loc) · 942 Bytes
/
ChildToolTip.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyleft 2004 Chris Korda
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2 of the License, or any later version.
/*
chris korda
revision history:
rev date comments
00 27jan04 initial version
implement tooltips for children of a window
*/
#ifndef CCHILDTOOLTIP_INCLUDED
#define CCHILDTOOLTIP_INCLUDED
class CChildToolTip
{
public:
CChildToolTip();
~CChildToolTip();
BOOL EnableToolTips(CWnd *pWnd, BOOL bEnable, BOOL UseDlgIDs = TRUE);
void RelayEvent(LPMSG lpMsg);
CToolTipCtrl *operator->() const;
operator bool() const;
private:
CToolTipCtrl *m_ToolTip;
NOCOPIES(CChildToolTip);
};
inline CToolTipCtrl *CChildToolTip::operator->() const
{
return(m_ToolTip);
}
inline CChildToolTip::operator bool() const
{
return(m_ToolTip != NULL);
}
#endif