ReactOS  0.4.15-dev-509-g96a357b
CTooltips Class Reference

#include <rosctrls.h>

Inheritance diagram for CTooltips:
Collaboration diagram for CTooltips:

Public Member Functions

HWND Create (HWND hWndParent, DWORD dwStyles=WS_POPUP|TTS_NOPREFIX, DWORD dwExStyles=WS_EX_TOPMOST)
 
VOID RelayEvent (MSG *pMsg, WPARAM extraInfo=0)
 
INT GetToolCount ()
 
BOOL AddTool (IN CONST TTTOOLINFOW *pInfo)
 
VOID DelTool (IN HWND hwndToolOwner, IN UINT uId)
 
VOID NewToolRect (IN HWND hwndToolOwner, IN UINT uId, IN RECT rect)
 
BOOL GetToolInfo (IN HWND hwndToolOwner, IN UINT uId, IN OUT TTTOOLINFOW *pInfo)
 
VOID SetToolInfo (IN CONST TTTOOLINFOW *pInfo)
 
BOOL HitTest (IN CONST TTHITTESTINFOW *pInfo)
 
VOID GetText (IN HWND hwndToolOwner, IN UINT uId, OUT PWSTR pBuffer, IN DWORD cchBuffer)
 
VOID UpdateTipText (IN HWND hwndToolOwner, IN UINT uId, IN PCWSTR szText, IN HINSTANCE hinstResourceOwner=NULL)
 
BOOL EnumTools (IN CONST TTTOOLINFOW *pInfo)
 
BOOL GetCurrentTool (OUT OPTIONAL TTTOOLINFOW *pInfo=NULL)
 
VOID GetTitle (TTGETTITLE *pTitleInfo)
 
BOOL SetTitle (PCWSTR szTitleText, WPARAM icon=0)
 
VOID TrackActivate (IN HWND hwndToolOwner, IN UINT uId)
 
VOID TrackDeactivate ()
 
VOID TrackPosition (IN WORD x, IN WORD y)
 
VOID Popup ()
 
VOID Pop ()
 
INT GetDelayTime (UINT which)
 
VOID SetDelayTime (UINT which, WORD time)
 
VOID Activate (IN BOOL bActivate=TRUE)
 
VOID AdjustRect (IN BOOL bTextToWindow, IN OUT RECT *pRect)
 
SIZE GetBubbleSize (IN TTTOOLINFOW *pInfo)
 
VOID GetMargin (OUT RECT *pRect)
 
VOID SetMargin (IN RECT *pRect)
 
INT GetMaxTipWidth ()
 
INT SetMaxTipWidth (IN OPTIONAL INT width=-1)
 
COLORREF GetTipTextColor ()
 
VOID SetTipTextColor (IN COLORREF textColor)
 
COLORREF GetTipBkColor ()
 
VOID SetTipBkColor (IN COLORREF textColor)
 
VOID SetWindowTheme (IN PCWSTR szThemeName)
 
VOID Update ()
 
HWND WindowFromPoint (IN POINT *pPoint)
 

Detailed Description

Definition at line 609 of file rosctrls.h.

Member Function Documentation

◆ Activate()

VOID CTooltips::Activate ( IN BOOL  bActivate = TRUE)
inline

Definition at line 755 of file rosctrls.h.

756  {
757  SendMessageW(TTM_ACTIVATE, bActivate);
758  }
#define TTM_ACTIVATE
Definition: commctrl.h:1780
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ AddTool()

BOOL CTooltips::AddTool ( IN CONST TTTOOLINFOW pInfo)
inline

Definition at line 635 of file rosctrls.h.

636  {
637  return SendMessageW(TTM_ADDTOOL, 0, reinterpret_cast<LPARAM>(pInfo));
638  }
#define TTM_ADDTOOL
Definition: commctrl.h:1835
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

Referenced by CTrayClockWnd::OnCreate(), and CSysPagerWnd::OnCreate().

◆ AdjustRect()

VOID CTooltips::AdjustRect ( IN BOOL  bTextToWindow,
IN OUT RECT pRect 
)
inline

Definition at line 761 of file rosctrls.h.

762  {
763  SendMessageW(TTM_ADJUSTRECT, bTextToWindow, reinterpret_cast<LPARAM>(pRect));
764  }
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define TTM_ADJUSTRECT
Definition: commctrl.h:1822

◆ Create()

HWND CTooltips::Create ( HWND  hWndParent,
DWORD  dwStyles = WS_POPUP | TTS_NOPREFIX,
DWORD  dwExStyles = WS_EX_TOPMOST 
)
inline

Definition at line 614 of file rosctrls.h.

615  {
616  RECT r = { 0 };
617  return CWindow::Create(TOOLTIPS_CLASS, hWndParent, r, L"", dwStyles, dwExStyles);
618  }
#define TOOLTIPS_CLASS
Definition: commctrl.h:1706
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
_In_ BOOLEAN Create
Definition: pstypes.h:519
static const WCHAR L[]
Definition: oid.c:1250

Referenced by CTrayClockWnd::OnCreate(), and CSysPagerWnd::OnCreate().

◆ DelTool()

VOID CTooltips::DelTool ( IN HWND  hwndToolOwner,
IN UINT  uId 
)
inline

Definition at line 640 of file rosctrls.h.

641  {
642  TTTOOLINFOW info = { sizeof(TTTOOLINFOW), 0 };
643  info.hwnd = hwndToolOwner;
644  info.uId = uId;
645  SendMessageW(TTM_DELTOOL, 0, reinterpret_cast<LPARAM>(&info));
646  }
struct tagTOOLINFOW TTTOOLINFOW
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define TTM_DELTOOL
Definition: commctrl.h:1836

◆ EnumTools()

BOOL CTooltips::EnumTools ( IN CONST TTTOOLINFOW pInfo)
inline

Definition at line 693 of file rosctrls.h.

694  {
695  return SendMessageW(TTM_ENUMTOOLS, 0, reinterpret_cast<LPARAM>(pInfo));
696  }
#define TTM_ENUMTOOLS
Definition: commctrl.h:1843
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ GetBubbleSize()

SIZE CTooltips::GetBubbleSize ( IN TTTOOLINFOW pInfo)
inline

Definition at line 767 of file rosctrls.h.

768  {
769  DWORD ret = SendMessageW(TTM_GETBUBBLESIZE, 0, reinterpret_cast<LPARAM>(pInfo));
770  const SIZE sz = { LOWORD(ret), HIWORD(ret) };
771  return sz;
772  }
unsigned long DWORD
Definition: ntddk_ex.h:95
int ret
#define TTM_GETBUBBLESIZE
Definition: commctrl.h:1821
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define HIWORD(l)
Definition: typedefs.h:246
#define LOWORD(l)
Definition: pedump.c:82

◆ GetCurrentTool()

BOOL CTooltips::GetCurrentTool ( OUT OPTIONAL TTTOOLINFOW pInfo = NULL)
inline

Definition at line 698 of file rosctrls.h.

699  {
700  return SendMessageW(TTM_GETCURRENTTOOL, 0, reinterpret_cast<LPARAM>(pInfo));
701  }
#define TTM_GETCURRENTTOOL
Definition: commctrl.h:1844
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ GetDelayTime()

INT CTooltips::GetDelayTime ( UINT  which)
inline

Definition at line 744 of file rosctrls.h.

745  {
747  }
#define TTM_GETDELAYTIME
Definition: commctrl.h:1812
static GLenum which
Definition: wgl_font.c:159
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ GetMargin()

VOID CTooltips::GetMargin ( OUT RECT pRect)
inline

Definition at line 775 of file rosctrls.h.

776  {
777  SendMessageW(TTM_GETMARGIN, 0, reinterpret_cast<LPARAM>(pRect));
778  }
#define TTM_GETMARGIN
Definition: commctrl.h:1818
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ GetMaxTipWidth()

INT CTooltips::GetMaxTipWidth ( )
inline

Definition at line 786 of file rosctrls.h.

787  {
789  }
#define TTM_GETMAXTIPWIDTH
Definition: commctrl.h:1816
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ GetText()

VOID CTooltips::GetText ( IN HWND  hwndToolOwner,
IN UINT  uId,
OUT PWSTR  pBuffer,
IN DWORD  cchBuffer 
)
inline

Definition at line 674 of file rosctrls.h.

675  {
676  TTTOOLINFOW info = { sizeof(TTTOOLINFOW), 0 };
677  info.hwnd = hwndToolOwner;
678  info.uId = uId;
679  info.lpszText = pBuffer;
680  SendMessageW(TTM_GETTEXT, cchBuffer, reinterpret_cast<LPARAM>(&info));
681  }
struct tagTOOLINFOW TTTOOLINFOW
static DWORD cchBuffer
Definition: fusion.c:85
PVOID pBuffer
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define TTM_GETTEXT
Definition: commctrl.h:1841

◆ GetTipBkColor()

COLORREF CTooltips::GetTipBkColor ( )
inline

Definition at line 807 of file rosctrls.h.

808  {
810  }
#define TTM_GETTIPBKCOLOR
Definition: commctrl.h:1813
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ GetTipTextColor()

COLORREF CTooltips::GetTipTextColor ( )
inline

Definition at line 797 of file rosctrls.h.

798  {
800  }
#define TTM_GETTIPTEXTCOLOR
Definition: commctrl.h:1814
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ GetTitle()

VOID CTooltips::GetTitle ( TTGETTITLE pTitleInfo)
inline

Definition at line 703 of file rosctrls.h.

704  {
705  SendMessageW(TTM_GETTITLE, 0, reinterpret_cast<LPARAM>(pTitleInfo));
706  }
#define TTM_GETTITLE
Definition: commctrl.h:1827
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ GetToolCount()

INT CTooltips::GetToolCount ( )
inline

Definition at line 630 of file rosctrls.h.

631  {
632  return SendMessageW(TTM_GETTOOLCOUNT, 0, 0);
633  }
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define TTM_GETTOOLCOUNT
Definition: commctrl.h:1802

◆ GetToolInfo()

BOOL CTooltips::GetToolInfo ( IN HWND  hwndToolOwner,
IN UINT  uId,
IN OUT TTTOOLINFOW pInfo 
)
inline

Definition at line 657 of file rosctrls.h.

658  {
659  pInfo->hwnd = hwndToolOwner;
660  pInfo->uId = uId;
661  return SendMessageW(TTM_GETTOOLINFO, 0, reinterpret_cast<LPARAM>(pInfo));
662  }
#define TTM_GETTOOLINFO
Definition: commctrl.h:1838
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ HitTest()

BOOL CTooltips::HitTest ( IN CONST TTHITTESTINFOW pInfo)
inline

Definition at line 669 of file rosctrls.h.

670  {
671  return SendMessageW(TTM_HITTEST, 0, reinterpret_cast<LPARAM>(pInfo));
672  }
#define TTM_HITTEST
Definition: commctrl.h:1840
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ NewToolRect()

VOID CTooltips::NewToolRect ( IN HWND  hwndToolOwner,
IN UINT  uId,
IN RECT  rect 
)
inline

Definition at line 648 of file rosctrls.h.

649  {
650  TTTOOLINFOW info = { sizeof(TTTOOLINFOW), 0 };
651  info.hwnd = hwndToolOwner;
652  info.uId = uId;
653  info.rect = rect;
654  SendMessageW(TTM_NEWTOOLRECT, 0, reinterpret_cast<LPARAM>(&info));
655  }
struct tagTOOLINFOW TTTOOLINFOW
#define TTM_NEWTOOLRECT
Definition: commctrl.h:1837
& rect
Definition: startmenu.cpp:1413
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ Pop()

VOID CTooltips::Pop ( )
inline

Definition at line 738 of file rosctrls.h.

739  {
741  }
#define TTM_POP
Definition: commctrl.h:1819
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ Popup()

VOID CTooltips::Popup ( )
inline

Definition at line 732 of file rosctrls.h.

733  {
735  }
#define TTM_POPUP
Definition: commctrl.h:1826
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ RelayEvent()

VOID CTooltips::RelayEvent ( MSG pMsg,
WPARAM  extraInfo = 0 
)
inline

Definition at line 623 of file rosctrls.h.

624  {
625  SendMessageW(TTM_RELAYEVENT, extraInfo, reinterpret_cast<LPARAM>(pMsg));
626  }
#define TTM_RELAYEVENT
Definition: commctrl.h:1788
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ SetDelayTime()

VOID CTooltips::SetDelayTime ( UINT  which,
WORD  time 
)
inline

Definition at line 749 of file rosctrls.h.

750  {
752  }
static GLenum which
Definition: wgl_font.c:159
#define MAKELPARAM(l, h)
Definition: winuser.h:3983
__u16 time
Definition: mkdosfs.c:366
#define TTM_SETDELAYTIME
Definition: commctrl.h:1781
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ SetMargin()

VOID CTooltips::SetMargin ( IN RECT pRect)
inline

Definition at line 780 of file rosctrls.h.

781  {
782  SendMessageW(TTM_SETMARGIN, 0, reinterpret_cast<LPARAM>(pRect));
783  }
#define TTM_SETMARGIN
Definition: commctrl.h:1817
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ SetMaxTipWidth()

INT CTooltips::SetMaxTipWidth ( IN OPTIONAL INT  width = -1)
inline

Definition at line 791 of file rosctrls.h.

792  {
794  }
GLint GLint GLsizei width
Definition: gl.h:1546
#define TTM_SETMAXTIPWIDTH
Definition: commctrl.h:1815
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ SetTipBkColor()

VOID CTooltips::SetTipBkColor ( IN COLORREF  textColor)
inline

Definition at line 812 of file rosctrls.h.

813  {
814  SendMessageW(TTM_SETTIPBKCOLOR, textColor);
815  }
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define TTM_SETTIPBKCOLOR
Definition: commctrl.h:1810

◆ SetTipTextColor()

VOID CTooltips::SetTipTextColor ( IN COLORREF  textColor)
inline

Definition at line 802 of file rosctrls.h.

803  {
804  SendMessageW(TTM_SETTIPTEXTCOLOR, textColor);
805  }
#define TTM_SETTIPTEXTCOLOR
Definition: commctrl.h:1811
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ SetTitle()

BOOL CTooltips::SetTitle ( PCWSTR  szTitleText,
WPARAM  icon = 0 
)
inline

Definition at line 708 of file rosctrls.h.

709  {
710  return SendMessageW(TTM_SETTITLE, icon, reinterpret_cast<LPARAM>(szTitleText));
711  }
#define TTM_SETTITLE
Definition: commctrl.h:1845
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

Referenced by CBalloonQueue::Show().

◆ SetToolInfo()

VOID CTooltips::SetToolInfo ( IN CONST TTTOOLINFOW pInfo)
inline

Definition at line 664 of file rosctrls.h.

665  {
666  SendMessageW(TTM_SETTOOLINFO, 0, reinterpret_cast<LPARAM>(pInfo));
667  }
#define TTM_SETTOOLINFO
Definition: commctrl.h:1839
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ SetWindowTheme()

VOID CTooltips::SetWindowTheme ( IN PCWSTR  szThemeName)
inline

Definition at line 817 of file rosctrls.h.

818  {
819  SendMessageW(TTM_SETWINDOWTHEME, 0, reinterpret_cast<LPARAM>(szThemeName));
820  }
#define TTM_SETWINDOWTHEME
Definition: commctrl.h:1847
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ TrackActivate()

VOID CTooltips::TrackActivate ( IN HWND  hwndToolOwner,
IN UINT  uId 
)
inline

Definition at line 713 of file rosctrls.h.

714  {
715  TTTOOLINFOW info = { sizeof(TTTOOLINFOW), 0 };
716  info.hwnd = hwndToolOwner;
717  info.uId = uId;
718  SendMessageW(TTM_TRACKACTIVATE, TRUE, reinterpret_cast<LPARAM>(&info));
719  }
struct tagTOOLINFOW TTTOOLINFOW
#define TRUE
Definition: types.h:120
#define TTM_TRACKACTIVATE
Definition: commctrl.h:1808
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

Referenced by CBalloonQueue::Show().

◆ TrackDeactivate()

VOID CTooltips::TrackDeactivate ( )
inline

Definition at line 721 of file rosctrls.h.

722  {
724  }
smooth NULL
Definition: ftsmooth.c:416
#define TTM_TRACKACTIVATE
Definition: commctrl.h:1808
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

Referenced by CBalloonQueue::Close().

◆ TrackPosition()

VOID CTooltips::TrackPosition ( IN WORD  x,
IN WORD  y 
)
inline

Definition at line 726 of file rosctrls.h.

727  {
729  }
#define MAKELPARAM(l, h)
Definition: winuser.h:3983
#define TTM_TRACKPOSITION
Definition: commctrl.h:1809
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

Referenced by CBalloonQueue::Show().

◆ Update()

VOID CTooltips::Update ( void  )
inline

Definition at line 823 of file rosctrls.h.

824  {
826  }
#define TTM_UPDATE
Definition: commctrl.h:1820
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ UpdateTipText()

VOID CTooltips::UpdateTipText ( IN HWND  hwndToolOwner,
IN UINT  uId,
IN PCWSTR  szText,
IN HINSTANCE  hinstResourceOwner = NULL 
)
inline

Definition at line 683 of file rosctrls.h.

684  {
685  TTTOOLINFOW info = { sizeof(TTTOOLINFOW), 0 };
686  info.hwnd = hwndToolOwner;
687  info.uId = uId;
688  info.lpszText = const_cast<PWSTR>(szText);
689  info.hinst = hinstResourceOwner;
690  SendMessageW(TTM_UPDATETIPTEXT, 0, reinterpret_cast<LPARAM>(&info));
691  }
struct tagTOOLINFOW TTTOOLINFOW
#define TTM_UPDATETIPTEXT
Definition: commctrl.h:1842
static const WCHAR szText[]
Definition: dialog.c:139
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

Referenced by CBalloonQueue::Show(), and CTrayClockWnd::UpdateWnd().

◆ WindowFromPoint()

HWND CTooltips::WindowFromPoint ( IN POINT pPoint)
inline

Definition at line 828 of file rosctrls.h.

829  {
830  return reinterpret_cast<HWND>(SendMessageW(TTM_WINDOWFROMPOINT, 0, reinterpret_cast<LPARAM>(pPoint)));
831  }
#define TTM_WINDOWFROMPOINT
Definition: commctrl.h:1807
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

The documentation for this class was generated from the following file: