Skip to content

Latest commit

 

History

History
71 lines (44 loc) · 1.9 KB

lb-gethorizontalextent.md

File metadata and controls

71 lines (44 loc) · 1.9 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
LB_GETHORIZONTALEXTENT message (Winuser.h)
Gets the width, in pixels, that a list box can be scrolled horizontally (the scrollable width) if the list box has a horizontal scroll bar.
52461724-c06a-436a-ac95-94c5189ba37e
LB_GETHORIZONTALEXTENT message Windows Controls
apiref
LB_GETHORIZONTALEXTENT
Winuser.h
HeaderDef
reference
05/31/2018

LB_GETHORIZONTALEXTENT message

Gets the width, in pixels, that a list box can be scrolled horizontally (the scrollable width) if the list box has a horizontal scroll bar.

Parameters

wParam

Not used; must be zero.

lParam

Not used; must be zero.

Return value

The return value is the scrollable width, in pixels, of the list box.

Remarks

To respond to the LB_GETHORIZONTALEXTENT message, the list box must have been defined with the WS_HSCROLL style.

If the application does not set the horizontal extent of the list box (using LB_SETHORIZONTALEXTENT), the default horizontal extent is zero. Note that the list box does not update its horizontal extent dynamically.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

LB_SETHORIZONTALEXTENT