Export (0) Print
Expand All
Expand Minimize

TB_SETPADDING message

Sets the padding for a toolbar control.

Parameters

wParam

Must be zero.

lParam

The LOWORD specifies the horizontal padding, in pixels. The HIWORD specifies the vertical padding, in pixels.

Return value

Returns a DWORD value that contains the previous horizontal padding in the LOWORD and the previous vertical padding in the HIWORD, in pixels.

Remarks

The padding values are used to create a blank area between the edge of the button and the button's image and/or text. Where and how much padding is actually applied depends on the type of the button and whether it has an image. The horizontal padding is applied to both the right and left of the button, and the vertical padding is applied to both the top and bottom of the button. Padding is only applied to buttons that have the TBSTYLE_AUTOSIZE style.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

See also

TB_GETPADDING

 

 

Community Additions

ADD
Show:
© 2014 Microsoft