LB_SETTABSTOPS

This message sets the tab-stop positions in a list box.

Parameters

wParam

Specifies the number of tab stops in the list box.

lParam

Is a long pointer to the first member of an array of WORDs containing the tab stop positions in dialog units. (A dialog unit is a horizontal or vertical distance. One horizontal dialog unit is equal to 1/4 of the the current dialog base width unit. The dialog base units are computed based on the height and width of the current system font. The GetDialogBaseUnits function returns the current dialog base units in pixels.) The tab stops must be sorted in increasing order; back tabs are not allowed.

Return Value

The return value is TRUE if all the tabs were set. Otherwise, the return value is FALSE.

Comments

If wParam is zero and lParam is NULL, the default tab stop is two dialog units.

If wParam is 1, the edit control will have tab stops separated by the distance specified by lParam.

If lParam points to more than a single value, then a tab stop will be set for each value in lParam, up to the number specified by wParam.

To respond to the LB_SETTABSTOPS message, the list box must have been created with the LBS_USETABSTOPS style.