Interface for Tooltip Objects. More...
#include <stooltip-i.h>
Public Member Functions | |
BOOL | PreTranslateMessage (MSG *pMsg) PURE |
Pre-translates messages for the tooltip. | |
void | UpdateTip (const TIPID *id, RECT rc, LPCTSTR pszTip, int nScale) PURE |
Updates the current tooltip. | |
void | SetToolTip (LPCRECT rc, UINT tipAlign, LPCTSTR pszTip, int nScale) PURE |
Displays the tooltip at a specified position. | |
void | ClearTip () PURE |
Clears the current tooltip. | |
void | RelayEvent (const MSG *pMsg) PURE |
Relays mouse messages to the tooltip. | |
Interface for Tooltip Objects.
This interface defines the methods for tooltip objects, which handle the display and management of tooltips.
Definition at line 60 of file stooltip-i.h.
BOOL IToolTip::PreTranslateMessage | ( | MSG * | pMsg | ) |
Pre-translates messages for the tooltip.
pMsg | Pointer to the message to be translated. |
Implements IMsgFilter.
void IToolTip::RelayEvent | ( | const MSG * | pMsg | ) |
Relays mouse messages to the tooltip.
pMsg | Pointer to the mouse message. |
void IToolTip::SetToolTip | ( | LPCRECT | rc, |
UINT | tipAlign, | ||
LPCTSTR | pszTip, | ||
int | nScale ) |
Displays the tooltip at a specified position.
rc | Rectangle defining the tooltip's display position relative to the container. |
tipAlign | Tooltip alignment options. |
pszTip | Tooltip content. If NULL, the fixed tooltip is exited. |
nScale | Current scaling factor. |
void IToolTip::UpdateTip | ( | const TIPID * | id, |
RECT | rc, | ||
LPCTSTR | pszTip, | ||
int | nScale ) |
Updates the current tooltip.
id | Pointer to the tooltip ID. |
rc | Rectangle defining the tooltip's感应 area. |
pszTip | Tooltip string. |
nScale | Current scaling factor. |