Skip to content

Latest commit

 

History

History
67 lines (39 loc) · 1.65 KB

ttm-getmaxtipwidth.md

File metadata and controls

67 lines (39 loc) · 1.65 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
TTM_GETMAXTIPWIDTH message (Commctrl.h)
Retrieves the maximum width for a tooltip window.
0f0a5403-fe2e-4e5a-96c2-a435827a5fd7
TTM_GETMAXTIPWIDTH message Windows Controls
apiref
TTM_GETMAXTIPWIDTH
Commctrl.h
HeaderDef
reference
05/31/2018

TTM_GETMAXTIPWIDTH message

Retrieves the maximum width for a tooltip window.

Parameters

wParam

Must be zero.

lParam

Must be zero.

Return value

Returns an INT value that represents the maximum tooltip width, in pixels. If no maximum width was set previously, the message returns -1.

Remarks

The maximum tooltip width value does not indicate a tooltip window's actual width. Rather, if a tooltip string exceeds the maximum width, the control breaks the text into multiple lines, using spaces to determine line breaks. If the text cannot be segmented into multiple lines, it will be displayed on a single line. The length of this line may exceed the maximum tooltip width.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h

See also

TTM_SETMAXTIPWIDTH