CTitleTip Class Reference

#include <TitleTip.h>

List of all members.

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


Detailed Description

Definition at line 37 of file TitleTip.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Definition at line 48 of file TitleTip.h.

References m_pParentWnd.

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().


Member Data Documentation

BOOL CTitleTip::m_bCreated [protected]

Definition at line 73 of file TitleTip.h.

Referenced by CTitleTip(), and DestroyWindow().

DWORD CTitleTip::m_dwDblClickMsecs [protected]

Definition at line 72 of file TitleTip.h.

Referenced by CTitleTip(), and PreTranslateMessage().

DWORD CTitleTip::m_dwLastLButtonDown [protected]

Definition at line 71 of file TitleTip.h.

Referenced by CTitleTip(), and PreTranslateMessage().

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]

Definition at line 70 of file TitleTip.h.

Referenced by OnMouseMove(), and Show().

CRect CTitleTip::m_rectTitle [protected]

Definition at line 69 of file TitleTip.h.

Referenced by Show().


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:26:06 2006 for DT2005.panorama by  doxygen 1.4.7