soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
IToolTip Struct Reference

Interface for Tooltip Objects. More...

#include <stooltip-i.h>

Inheritance diagram for IToolTip:
IMsgFilter STipCtrl

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.
 

Detailed Description

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.

Member Function Documentation

◆ PreTranslateMessage()

BOOL IToolTip::PreTranslateMessage ( MSG * pMsg)

Pre-translates messages for the tooltip.

Parameters
pMsgPointer to the message to be translated.
Returns
BOOL TRUE if the message is handled, FALSE otherwise.

Implements IMsgFilter.

◆ RelayEvent()

void IToolTip::RelayEvent ( const MSG * pMsg)

Relays mouse messages to the tooltip.

Parameters
pMsgPointer to the mouse message.

◆ SetToolTip()

void IToolTip::SetToolTip ( LPCRECT rc,
UINT tipAlign,
LPCTSTR pszTip,
int nScale )

Displays the tooltip at a specified position.

Parameters
rcRectangle defining the tooltip's display position relative to the container.
tipAlignTooltip alignment options.
pszTipTooltip content. If NULL, the fixed tooltip is exited.
nScaleCurrent scaling factor.

◆ UpdateTip()

void IToolTip::UpdateTip ( const TIPID * id,
RECT rc,
LPCTSTR pszTip,
int nScale )

Updates the current tooltip.

Parameters
idPointer to the tooltip ID.
rcRectangle defining the tooltip's感应 area.
pszTipTooltip string.
nScaleCurrent scaling factor.

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