Help Center

CTooltip.GetCurrentToolmethod

Retrieves the information for the current tool in a Tooltip control.

WindowsmethodCTooltip.incdocumented

Syntax

FUNCTION GetCurrentTool (BYVAL hTooltip AS HWND, BYVAL lpti AS TOOLINFOW PTR) AS BOOLEAN
FUNCTION GetCurrentTool (BYVAL hTooltip AS HWND, BYVAL ti AS TOOLINFOW) AS BOOLEAN

Parameters

NameDescription
hTooltipThe handle of the Tooltip control.
lptiPointer to a TOOLINFOW structure that receives information about the current tool. If this value is NULL, the return value indicates the existence of the current tool without actually retrieving the tool information. If this value is not NULL, the cbSize member of the TOOLINFOW structure must be filled in before sending this message.
tiA TOOLINFOW structure that receives information about the current tool. If this value is NULL, the return value indicates the existence of the current tool without actually retrieving the tool information. If this value is not NULL, the cbSize member of the TOOLINFOW structure must be filled in before sending this message.

Return value

Returns nonzero if successful, or zero otherwise. If lpti is NULL, returns nonzero if a current tool exists, or zero otherwise.

Description

Retrieves the information for the current tool in a tooltip control.

Reference

  • Include file CTooltip.inc
  • Defined in AfxNova/CTooltip.inc:278
  • Documented in Windows/WIndows Controls/CTooltip Class.md
  • Topic: CTooltip Class