ReactOS 0.4.15-dev-7918-g2a2556c
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 611 of file rosctrls.h.

Member Function Documentation

◆ Activate()

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

Definition at line 757 of file rosctrls.h.

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

◆ AddTool()

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

Definition at line 637 of file rosctrls.h.

638 {
639 return SendMessageW(TTM_ADDTOOL, 0, reinterpret_cast<LPARAM>(pInfo));
640 }
#define TTM_ADDTOOL
Definition: commctrl.h:1839
LONG_PTR LPARAM
Definition: windef.h:208

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

◆ AdjustRect()

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

Definition at line 763 of file rosctrls.h.

764 {
765 SendMessageW(TTM_ADJUSTRECT, bTextToWindow, reinterpret_cast<LPARAM>(pRect));
766 }
#define TTM_ADJUSTRECT
Definition: commctrl.h:1826

◆ Create()

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

Definition at line 616 of file rosctrls.h.

617 {
618 RECT r = { 0 };
619 return CWindow::Create(TOOLTIPS_CLASS, hWndParent, r, L"", dwStyles, dwExStyles);
620 }
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
#define L(x)
Definition: ntvdm.h:50
#define TOOLTIPS_CLASS
Definition: commctrl.h:1710

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

◆ DelTool()

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

Definition at line 642 of file rosctrls.h.

643 {
644 TTTOOLINFOW info = { sizeof(TTTOOLINFOW), 0 };
645 info.hwnd = hwndToolOwner;
646 info.uId = uId;
647 SendMessageW(TTM_DELTOOL, 0, reinterpret_cast<LPARAM>(&info));
648 }
struct tagTOOLINFOW TTTOOLINFOW
#define TTM_DELTOOL
Definition: commctrl.h:1840

◆ EnumTools()

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

Definition at line 695 of file rosctrls.h.

696 {
697 return SendMessageW(TTM_ENUMTOOLS, 0, reinterpret_cast<LPARAM>(pInfo));
698 }
#define TTM_ENUMTOOLS
Definition: commctrl.h:1847

◆ GetBubbleSize()

SIZE CTooltips::GetBubbleSize ( IN TTTOOLINFOW pInfo)
inline

Definition at line 769 of file rosctrls.h.

770 {
771 DWORD ret = SendMessageW(TTM_GETBUBBLESIZE, 0, reinterpret_cast<LPARAM>(pInfo));
772 const SIZE sz = { LOWORD(ret), HIWORD(ret) };
773 return sz;
774 }
unsigned long DWORD
Definition: ntddk_ex.h:95
#define LOWORD(l)
Definition: pedump.c:82
#define TTM_GETBUBBLESIZE
Definition: commctrl.h:1825
#define HIWORD(l)
Definition: typedefs.h:247
int ret

◆ GetCurrentTool()

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

Definition at line 700 of file rosctrls.h.

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

◆ GetDelayTime()

INT CTooltips::GetDelayTime ( UINT  which)
inline

Definition at line 746 of file rosctrls.h.

747 {
749 }
#define TTM_GETDELAYTIME
Definition: commctrl.h:1816
static GLenum which
Definition: wgl_font.c:159

◆ GetMargin()

VOID CTooltips::GetMargin ( OUT RECT pRect)
inline

Definition at line 777 of file rosctrls.h.

778 {
779 SendMessageW(TTM_GETMARGIN, 0, reinterpret_cast<LPARAM>(pRect));
780 }
#define TTM_GETMARGIN
Definition: commctrl.h:1822

◆ GetMaxTipWidth()

INT CTooltips::GetMaxTipWidth ( )
inline

Definition at line 788 of file rosctrls.h.

789 {
791 }
#define TTM_GETMAXTIPWIDTH
Definition: commctrl.h:1820

◆ GetText()

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

Definition at line 676 of file rosctrls.h.

677 {
678 TTTOOLINFOW info = { sizeof(TTTOOLINFOW), 0 };
679 info.hwnd = hwndToolOwner;
680 info.uId = uId;
681 info.lpszText = pBuffer;
682 SendMessageW(TTM_GETTEXT, cchBuffer, reinterpret_cast<LPARAM>(&info));
683 }
static DWORD cchBuffer
Definition: fusion.c:85
#define TTM_GETTEXT
Definition: commctrl.h:1845
PVOID pBuffer

◆ GetTipBkColor()

COLORREF CTooltips::GetTipBkColor ( )
inline

Definition at line 809 of file rosctrls.h.

810 {
812 }
#define TTM_GETTIPBKCOLOR
Definition: commctrl.h:1817

◆ GetTipTextColor()

COLORREF CTooltips::GetTipTextColor ( )
inline

Definition at line 799 of file rosctrls.h.

800 {
802 }
#define TTM_GETTIPTEXTCOLOR
Definition: commctrl.h:1818

◆ GetTitle()

VOID CTooltips::GetTitle ( TTGETTITLE pTitleInfo)
inline

Definition at line 705 of file rosctrls.h.

706 {
707 SendMessageW(TTM_GETTITLE, 0, reinterpret_cast<LPARAM>(pTitleInfo));
708 }
#define TTM_GETTITLE
Definition: commctrl.h:1831

◆ GetToolCount()

INT CTooltips::GetToolCount ( )
inline

Definition at line 632 of file rosctrls.h.

633 {
634 return SendMessageW(TTM_GETTOOLCOUNT, 0, 0);
635 }
#define TTM_GETTOOLCOUNT
Definition: commctrl.h:1806

◆ GetToolInfo()

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

Definition at line 659 of file rosctrls.h.

660 {
661 pInfo->hwnd = hwndToolOwner;
662 pInfo->uId = uId;
663 return SendMessageW(TTM_GETTOOLINFO, 0, reinterpret_cast<LPARAM>(pInfo));
664 }
#define TTM_GETTOOLINFO
Definition: commctrl.h:1842

◆ HitTest()

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

Definition at line 671 of file rosctrls.h.

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

◆ NewToolRect()

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

Definition at line 650 of file rosctrls.h.

651 {
652 TTTOOLINFOW info = { sizeof(TTTOOLINFOW), 0 };
653 info.hwnd = hwndToolOwner;
654 info.uId = uId;
655 info.rect = rect;
656 SendMessageW(TTM_NEWTOOLRECT, 0, reinterpret_cast<LPARAM>(&info));
657 }
#define TTM_NEWTOOLRECT
Definition: commctrl.h:1841
& rect
Definition: startmenu.cpp:1413

◆ Pop()

VOID CTooltips::Pop ( )
inline

Definition at line 740 of file rosctrls.h.

741 {
743 }
#define TTM_POP
Definition: commctrl.h:1823

◆ Popup()

VOID CTooltips::Popup ( )
inline

Definition at line 734 of file rosctrls.h.

735 {
737 }
#define TTM_POPUP
Definition: commctrl.h:1830

◆ RelayEvent()

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

Definition at line 625 of file rosctrls.h.

626 {
627 SendMessageW(TTM_RELAYEVENT, extraInfo, reinterpret_cast<LPARAM>(pMsg));
628 }
#define TTM_RELAYEVENT
Definition: commctrl.h:1792

◆ SetDelayTime()

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

Definition at line 751 of file rosctrls.h.

752 {
754 }
__u16 time
Definition: mkdosfs.c:8
#define TTM_SETDELAYTIME
Definition: commctrl.h:1785
#define MAKELPARAM(l, h)
Definition: winuser.h:4008

◆ SetMargin()

VOID CTooltips::SetMargin ( IN RECT pRect)
inline

Definition at line 782 of file rosctrls.h.

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

◆ SetMaxTipWidth()

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

Definition at line 793 of file rosctrls.h.

794 {
796 }
GLint GLint GLsizei width
Definition: gl.h:1546
#define TTM_SETMAXTIPWIDTH
Definition: commctrl.h:1819

Referenced by CBalloonQueue::Show().

◆ SetTipBkColor()

VOID CTooltips::SetTipBkColor ( IN COLORREF  textColor)
inline

Definition at line 814 of file rosctrls.h.

815 {
817 }
#define TTM_SETTIPBKCOLOR
Definition: commctrl.h:1814

◆ SetTipTextColor()

VOID CTooltips::SetTipTextColor ( IN COLORREF  textColor)
inline

Definition at line 804 of file rosctrls.h.

805 {
807 }
#define TTM_SETTIPTEXTCOLOR
Definition: commctrl.h:1815

◆ SetTitle()

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

Definition at line 710 of file rosctrls.h.

711 {
712 return SendMessageW(TTM_SETTITLE, icon, reinterpret_cast<LPARAM>(szTitleText));
713 }
#define TTM_SETTITLE
Definition: commctrl.h:1849

Referenced by CBalloonQueue::Show().

◆ SetToolInfo()

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

Definition at line 666 of file rosctrls.h.

667 {
668 SendMessageW(TTM_SETTOOLINFO, 0, reinterpret_cast<LPARAM>(pInfo));
669 }
#define TTM_SETTOOLINFO
Definition: commctrl.h:1843

◆ SetWindowTheme()

VOID CTooltips::SetWindowTheme ( IN PCWSTR  szThemeName)
inline

Definition at line 819 of file rosctrls.h.

820 {
821 SendMessageW(TTM_SETWINDOWTHEME, 0, reinterpret_cast<LPARAM>(szThemeName));
822 }
#define TTM_SETWINDOWTHEME
Definition: commctrl.h:1851

◆ TrackActivate()

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

Definition at line 715 of file rosctrls.h.

716 {
717 TTTOOLINFOW info = { sizeof(TTTOOLINFOW), 0 };
718 info.hwnd = hwndToolOwner;
719 info.uId = uId;
720 SendMessageW(TTM_TRACKACTIVATE, TRUE, reinterpret_cast<LPARAM>(&info));
721 }
#define TRUE
Definition: types.h:120
#define TTM_TRACKACTIVATE
Definition: commctrl.h:1812

Referenced by CBalloonQueue::Show().

◆ TrackDeactivate()

VOID CTooltips::TrackDeactivate ( )
inline

Definition at line 723 of file rosctrls.h.

724 {
726 }
#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 728 of file rosctrls.h.

729 {
731 }
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:1813

Referenced by CBalloonQueue::Show().

◆ Update()

VOID CTooltips::Update ( )
inline

Definition at line 825 of file rosctrls.h.

826 {
828 }
#define TTM_UPDATE
Definition: commctrl.h:1824

◆ UpdateTipText()

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

Definition at line 685 of file rosctrls.h.

686 {
687 TTTOOLINFOW info = { sizeof(TTTOOLINFOW), 0 };
688 info.hwnd = hwndToolOwner;
689 info.uId = uId;
690 info.lpszText = const_cast<PWSTR>(szText);
691 info.hinst = hinstResourceOwner;
692 SendMessageW(TTM_UPDATETIPTEXT, 0, reinterpret_cast<LPARAM>(&info));
693 }
#define TTM_UPDATETIPTEXT
Definition: commctrl.h:1846
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 830 of file rosctrls.h.

831 {
832 return reinterpret_cast<HWND>(SendMessageW(TTM_WINDOWFROMPOINT, 0, reinterpret_cast<LPARAM>(pPoint)));
833 }
#define TTM_WINDOWFROMPOINT
Definition: commctrl.h:1811

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