OWLNext 7.0
Borland's Object Windows Library for the modern age
|
TTooltipText identifies a tool for which text is to be displayed. More...
#include <owl/commctrl.h>
Public Member Functions | |
operator NMHDR & () | |
void | SetText (LPCTSTR buff) |
Sets text of tooltip to specified buffer. | |
void | SetText (int resId, HINSTANCE hInstance) |
Sets the text of the tooltip. | |
void | CopyText (LPCTSTR buff) |
Sets the text of the tooltip. | |
void | CopyText (const tstring &s) |
TTooltipText identifies a tool for which text is to be displayed.
It is sent to the parent of the tooltip via a WM_NOTIFY/TTN_NEEDTEXT notification. It receives the text to be displayed.
Definition at line 153 of file commctrl.h.
Definition at line 162 of file commctrl.h.
References CopyText().
Sets the text of the tooltip.
The text is copied into the buffer owned by the 'TTooltipText'.
Definition at line 320 of file tooltip.cpp.
References _T, _tcslen, COUNTOF, PRECONDITION, and WARNX.
|
inline |
Definition at line 155 of file commctrl.h.
Sets the text of the tooltip.
The 'resId' identifies a string resource found in the module pointed to by the 'hInstance' parameter.
Definition at line 334 of file tooltip.cpp.
References CONST_CAST.
Sets text of tooltip to specified buffer.
NOTE: The buffer pointed to by the specified parameter must be valid for as long as the TTooltipText points to it. For temporary buffers, use the 'CopyText' method instead.
Definition at line 308 of file tooltip.cpp.