#include <TitleTip.h>
Public Member Functions | |
CTitleTip () | |
virtual | ~CTitleTip () |
virtual BOOL | Create (CWnd *pParentWnd) |
void | SetParentWnd (CWnd *pParentWnd) |
CWnd * | GetParentWnd () |
void | Show (CRect rectTitle, LPCTSTR lpszTitleText, int xoffset=0, LPRECT lpHoverRect=NULL, const LOGFONT *lpLogFont=NULL, COLORREF crTextClr=CLR_DEFAULT, COLORREF crBackClr=CLR_DEFAULT) |
void | Hide () |
virtual BOOL | PreTranslateMessage (MSG *pMsg) |
virtual BOOL | DestroyWindow () |
Protected Member Functions | |
afx_msg void | OnMouseMove (UINT nFlags, CPoint point) |
DECLARE_MESSAGE_MAP () | |
Protected Attributes | |
CWnd * | m_pParentWnd |
CRect | m_rectTitle |
CRect | m_rectHover |
DWORD | m_dwLastLButtonDown |
DWORD | m_dwDblClickMsecs |
BOOL | m_bCreated |
Definition at line 37 of file TitleTip.h.
CTitleTip::CTitleTip | ( | ) |
Definition at line 45 of file TitleTip.cpp.
References FALSE, m_bCreated, m_dwDblClickMsecs, m_dwLastLButtonDown, and TITLETIP_CLASSNAME.
CTitleTip::~CTitleTip | ( | ) | [virtual] |
Definition at line 72 of file TitleTip.cpp.
BOOL CTitleTip::Create | ( | CWnd * | pParentWnd | ) | [virtual] |
Definition at line 87 of file TitleTip.cpp.
References TITLETIP_CLASSNAME, and TRUE.
Referenced by Show().
CTitleTip::DECLARE_MESSAGE_MAP | ( | ) | [protected] |
BOOL CTitleTip::DestroyWindow | ( | ) | [virtual] |
Definition at line 106 of file TitleTip.cpp.
References FALSE, and m_bCreated.
Referenced by CGridCtrl::~CGridCtrl().
CWnd* CTitleTip::GetParentWnd | ( | ) | [inline] |
void CTitleTip::Hide | ( | ) |
Definition at line 216 of file TitleTip.cpp.
Referenced by CGridCtrl::OnEditCell(), CGridCtrl::OnHScroll(), CGridCtrl::OnLButtonDown(), OnMouseMove(), CGridCtrl::OnSysKeyDown(), CGridCtrl::OnVScroll(), and PreTranslateMessage().
void CTitleTip::OnMouseMove | ( | UINT | nFlags, | |
CPoint | point | |||
) | [protected] |
Definition at line 227 of file TitleTip.cpp.
References Hide(), int(), m_pParentWnd, and m_rectHover.
BOOL CTitleTip::PreTranslateMessage | ( | MSG * | pMsg | ) | [virtual] |
Definition at line 250 of file TitleTip.cpp.
References BOOL(), FALSE, Hide(), int(), m_dwDblClickMsecs, m_dwLastLButtonDown, m_pParentWnd, and TRUE.
void CTitleTip::SetParentWnd | ( | CWnd * | pParentWnd | ) | [inline] |
Definition at line 47 of file TitleTip.h.
References m_pParentWnd.
Referenced by CGridCtrl::Initialise().
void CTitleTip::Show | ( | CRect | rectTitle, | |
LPCTSTR | lpszTitleText, | |||
int | xoffset = 0 , |
|||
LPRECT | lpHoverRect = NULL , |
|||
const LOGFONT * | lpLogFont = NULL , |
|||
COLORREF | crTextClr = CLR_DEFAULT , |
|||
COLORREF | crBackClr = CLR_DEFAULT | |||
) |
Definition at line 119 of file TitleTip.cpp.
References ASSERT, Create(), m_pParentWnd, m_rectHover, and m_rectTitle.
Referenced by CGridCtrl::OnMouseMove().
BOOL CTitleTip::m_bCreated [protected] |
DWORD CTitleTip::m_dwDblClickMsecs [protected] |
DWORD CTitleTip::m_dwLastLButtonDown [protected] |
CWnd* CTitleTip::m_pParentWnd [protected] |
Definition at line 68 of file TitleTip.h.
Referenced by GetParentWnd(), OnMouseMove(), PreTranslateMessage(), SetParentWnd(), and Show().
CRect CTitleTip::m_rectHover [protected] |
CRect CTitleTip::m_rectTitle [protected] |