ListBox_SetHorizontalExtent macro

Set the width by which a list box can be scrolled horizontally (the scrollable width). If the width of the list box is smaller than this value, the horizontal scroll bar horizontally scrolls items in the list box. If the width of the list box is equal to or greater than this value, the horizontal scroll bar is hidden. You can use this macro or send the LB_SETHORIZONTALEXTENT message explicitly.

Syntax


void ListBox_SetHorizontalExtent(
  HWND hwndCtl,
  int cxExtent
);

Parameters

hwndCtl

Type: HWND

A handle to the control.

cxExtent

Type: int

The number of pixels by which the list box can be scrolled.

Return value

No return value.

Remarks

For more information, see LB_SETHORIZONTALEXTENT.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Windowsx.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft