ReactOS 0.4.17-dev-806-gffa4164
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 616 of file rosctrls.h.

Member Function Documentation

◆ Activate()

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

Definition at line 762 of file rosctrls.h.

763 {
764 SendMessageW(TTM_ACTIVATE, bActivate);
765 }
#define TTM_ACTIVATE
Definition: commctrl.h:1789
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ AddTool()

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

Definition at line 642 of file rosctrls.h.

643 {
644 return SendMessageW(TTM_ADDTOOL, 0, reinterpret_cast<LPARAM>(pInfo));
645 }
LONG_PTR LPARAM
Definition: minwindef.h:175
#define TTM_ADDTOOL
Definition: commctrl.h:1844

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

◆ AdjustRect()

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

Definition at line 768 of file rosctrls.h.

769 {
770 SendMessageW(TTM_ADJUSTRECT, bTextToWindow, reinterpret_cast<LPARAM>(pRect));
771 }
#define TTM_ADJUSTRECT
Definition: commctrl.h:1831

◆ Create()

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

Definition at line 621 of file rosctrls.h.

622 {
623 RECT r = { 0 };
624 return CWindow::Create(TOOLTIPS_CLASS, hWndParent, r, L"", dwStyles, dwExStyles);
625 }
#define L(x)
Definition: resources.c:13
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
#define TOOLTIPS_CLASS
Definition: commctrl.h:1710

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

◆ DelTool()

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

Definition at line 647 of file rosctrls.h.

648 {
649 TTTOOLINFOW info = { sizeof(TTTOOLINFOW), 0 };
650 info.hwnd = hwndToolOwner;
651 info.uId = uId;
652 SendMessageW(TTM_DELTOOL, 0, reinterpret_cast<LPARAM>(&info));
653 }
struct tagTOOLINFOW TTTOOLINFOW
#define TTM_DELTOOL
Definition: commctrl.h:1845

◆ EnumTools()

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

Definition at line 700 of file rosctrls.h.

701 {
702 return SendMessageW(TTM_ENUMTOOLS, 0, reinterpret_cast<LPARAM>(pInfo));
703 }
#define TTM_ENUMTOOLS
Definition: commctrl.h:1852

◆ GetBubbleSize()

SIZE CTooltips::GetBubbleSize ( IN TTTOOLINFOW pInfo)
inline

Definition at line 774 of file rosctrls.h.

775 {
776 DWORD ret = SendMessageW(TTM_GETBUBBLESIZE, 0, reinterpret_cast<LPARAM>(pInfo));
777 const SIZE sz = { LOWORD(ret), HIWORD(ret) };
778 return sz;
779 }
return ret
Definition: mutex.c:147
unsigned long DWORD
Definition: ntddk_ex.h:95
#define LOWORD(l)
Definition: pedump.c:82
#define TTM_GETBUBBLESIZE
Definition: commctrl.h:1830
#define HIWORD(l)
Definition: typedefs.h:247

◆ GetCurrentTool()

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

Definition at line 705 of file rosctrls.h.

706 {
707 return SendMessageW(TTM_GETCURRENTTOOL, 0, reinterpret_cast<LPARAM>(pInfo));
708 }
#define TTM_GETCURRENTTOOL
Definition: commctrl.h:1853

◆ GetDelayTime()

INT CTooltips::GetDelayTime ( UINT  which)
inline

Definition at line 751 of file rosctrls.h.

752 {
754 }
#define TTM_GETDELAYTIME
Definition: commctrl.h:1821
static GLenum which
Definition: wgl_font.c:159

◆ GetMargin()

VOID CTooltips::GetMargin ( OUT RECT pRect)
inline

Definition at line 782 of file rosctrls.h.

783 {
784 SendMessageW(TTM_GETMARGIN, 0, reinterpret_cast<LPARAM>(pRect));
785 }
#define TTM_GETMARGIN
Definition: commctrl.h:1827

◆ GetMaxTipWidth()

INT CTooltips::GetMaxTipWidth ( )
inline

Definition at line 793 of file rosctrls.h.

794 {
796 }
#define TTM_GETMAXTIPWIDTH
Definition: commctrl.h:1825

◆ GetText()

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

Definition at line 681 of file rosctrls.h.

682 {
683 TTTOOLINFOW info = { sizeof(TTTOOLINFOW), 0 };
684 info.hwnd = hwndToolOwner;
685 info.uId = uId;
686 info.lpszText = pBuffer;
687 SendMessageW(TTM_GETTEXT, cchBuffer, reinterpret_cast<LPARAM>(&info));
688 }
static DWORD cchBuffer
Definition: fusion.c:85
#define TTM_GETTEXT
Definition: commctrl.h:1850
PVOID pBuffer

◆ GetTipBkColor()

COLORREF CTooltips::GetTipBkColor ( )
inline

Definition at line 814 of file rosctrls.h.

815 {
817 }
#define TTM_GETTIPBKCOLOR
Definition: commctrl.h:1822

◆ GetTipTextColor()

COLORREF CTooltips::GetTipTextColor ( )
inline

Definition at line 804 of file rosctrls.h.

805 {
807 }
#define TTM_GETTIPTEXTCOLOR
Definition: commctrl.h:1823

◆ GetTitle()

VOID CTooltips::GetTitle ( TTGETTITLE pTitleInfo)
inline

Definition at line 710 of file rosctrls.h.

711 {
712 SendMessageW(TTM_GETTITLE, 0, reinterpret_cast<LPARAM>(pTitleInfo));
713 }
#define TTM_GETTITLE
Definition: commctrl.h:1836

◆ GetToolCount()

INT CTooltips::GetToolCount ( )
inline

Definition at line 637 of file rosctrls.h.

638 {
639 return SendMessageW(TTM_GETTOOLCOUNT, 0, 0);
640 }
#define TTM_GETTOOLCOUNT
Definition: commctrl.h:1811

◆ GetToolInfo()

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

Definition at line 664 of file rosctrls.h.

665 {
666 pInfo->hwnd = hwndToolOwner;
667 pInfo->uId = uId;
668 return SendMessageW(TTM_GETTOOLINFO, 0, reinterpret_cast<LPARAM>(pInfo));
669 }
#define TTM_GETTOOLINFO
Definition: commctrl.h:1847

◆ HitTest()

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

Definition at line 676 of file rosctrls.h.

677 {
678 return SendMessageW(TTM_HITTEST, 0, reinterpret_cast<LPARAM>(pInfo));
679 }
#define TTM_HITTEST
Definition: commctrl.h:1849

◆ NewToolRect()

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

Definition at line 655 of file rosctrls.h.

656 {
657 TTTOOLINFOW info = { sizeof(TTTOOLINFOW), 0 };
658 info.hwnd = hwndToolOwner;
659 info.uId = uId;
660 info.rect = rect;
661 SendMessageW(TTM_NEWTOOLRECT, 0, reinterpret_cast<LPARAM>(&info));
662 }
RECT rect
Definition: combotst.c:67
#define TTM_NEWTOOLRECT
Definition: commctrl.h:1846

◆ Pop()

VOID CTooltips::Pop ( )
inline

Definition at line 745 of file rosctrls.h.

746 {
748 }
#define TTM_POP
Definition: commctrl.h:1828

◆ Popup()

VOID CTooltips::Popup ( )
inline

Definition at line 739 of file rosctrls.h.

740 {
742 }
#define TTM_POPUP
Definition: commctrl.h:1835

◆ RelayEvent()

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

Definition at line 630 of file rosctrls.h.

631 {
632 SendMessageW(TTM_RELAYEVENT, extraInfo, reinterpret_cast<LPARAM>(pMsg));
633 }
#define TTM_RELAYEVENT
Definition: commctrl.h:1797

◆ SetDelayTime()

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

Definition at line 756 of file rosctrls.h.

757 {
759 }
__u16 time
Definition: mkdosfs.c:8
#define TTM_SETDELAYTIME
Definition: commctrl.h:1790
#define MAKELPARAM(l, h)
Definition: winuser.h:4116

◆ SetMargin()

VOID CTooltips::SetMargin ( IN RECT pRect)
inline

Definition at line 787 of file rosctrls.h.

788 {
789 SendMessageW(TTM_SETMARGIN, 0, reinterpret_cast<LPARAM>(pRect));
790 }
#define TTM_SETMARGIN
Definition: commctrl.h:1826

◆ SetMaxTipWidth()

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

Definition at line 798 of file rosctrls.h.

799 {
801 }
GLint GLint GLsizei width
Definition: gl.h:1546
#define TTM_SETMAXTIPWIDTH
Definition: commctrl.h:1824

Referenced by CBalloonQueue::Show().

◆ SetTipBkColor()

VOID CTooltips::SetTipBkColor ( IN COLORREF  textColor)
inline

Definition at line 819 of file rosctrls.h.

820 {
822 }
#define TTM_SETTIPBKCOLOR
Definition: commctrl.h:1819

◆ SetTipTextColor()

VOID CTooltips::SetTipTextColor ( IN COLORREF  textColor)
inline

Definition at line 809 of file rosctrls.h.

810 {
812 }
#define TTM_SETTIPTEXTCOLOR
Definition: commctrl.h:1820

◆ SetTitle()

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

Definition at line 715 of file rosctrls.h.

716 {
717 return SendMessageW(TTM_SETTITLE, icon, reinterpret_cast<LPARAM>(szTitleText));
718 }
#define TTM_SETTITLE
Definition: commctrl.h:1854

Referenced by CBalloonQueue::Show().

◆ SetToolInfo()

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

Definition at line 671 of file rosctrls.h.

672 {
673 SendMessageW(TTM_SETTOOLINFO, 0, reinterpret_cast<LPARAM>(pInfo));
674 }
#define TTM_SETTOOLINFO
Definition: commctrl.h:1848

◆ SetWindowTheme()

VOID CTooltips::SetWindowTheme ( IN PCWSTR  szThemeName)
inline

Definition at line 824 of file rosctrls.h.

825 {
826 SendMessageW(TTM_SETWINDOWTHEME, 0, reinterpret_cast<LPARAM>(szThemeName));
827 }
#define TTM_SETWINDOWTHEME
Definition: commctrl.h:1856

◆ TrackActivate()

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

Definition at line 720 of file rosctrls.h.

721 {
722 TTTOOLINFOW info = { sizeof(TTTOOLINFOW), 0 };
723 info.hwnd = hwndToolOwner;
724 info.uId = uId;
725 SendMessageW(TTM_TRACKACTIVATE, TRUE, reinterpret_cast<LPARAM>(&info));
726 }
#define TRUE
Definition: types.h:120
#define TTM_TRACKACTIVATE
Definition: commctrl.h:1817

Referenced by CBalloonQueue::Show().

◆ TrackDeactivate()

VOID CTooltips::TrackDeactivate ( )
inline

Definition at line 728 of file rosctrls.h.

729 {
731 }
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117

Referenced by CBalloonQueue::Close().

◆ TrackPosition()

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

Definition at line 733 of file rosctrls.h.

734 {
736 }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
#define TTM_TRACKPOSITION
Definition: commctrl.h:1818

Referenced by CBalloonQueue::Show().

◆ Update()

VOID CTooltips::Update ( )
inline

Definition at line 830 of file rosctrls.h.

831 {
833 }
#define TTM_UPDATE
Definition: commctrl.h:1829

◆ UpdateTipText()

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

Definition at line 690 of file rosctrls.h.

691 {
692 TTTOOLINFOW info = { sizeof(TTTOOLINFOW), 0 };
693 info.hwnd = hwndToolOwner;
694 info.uId = uId;
695 info.lpszText = const_cast<PWSTR>(szText);
696 info.hinst = hinstResourceOwner;
697 SendMessageW(TTM_UPDATETIPTEXT, 0, reinterpret_cast<LPARAM>(&info));
698 }
#define TTM_UPDATETIPTEXT
Definition: commctrl.h:1851
uint16_t * PWSTR
Definition: typedefs.h:56

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

◆ WindowFromPoint()

HWND CTooltips::WindowFromPoint ( IN POINT pPoint)
inline

Definition at line 835 of file rosctrls.h.

836 {
837 return reinterpret_cast<HWND>(SendMessageW(TTM_WINDOWFROMPOINT, 0, reinterpret_cast<LPARAM>(pPoint)));
838 }
#define TTM_WINDOWFROMPOINT
Definition: commctrl.h:1816

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