TTM_GETCURRENTTOOL message

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

Parameters

wParam

Must be zero.

lParam

Pointer to a TOOLINFO 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 TOOLINFO structure must be filled in before sending this message.

Return value

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

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h
Unicode and ANSI names
TTM_GETCURRENTTOOLW (Unicode) and TTM_GETCURRENTTOOLA (ANSI)