Contents Index Topic Contents | ||
Previous Topic: LVM_SETHOVERTIME Next Topic: LVM_SETIMAGELIST |
LVM_SETICONSPACING
LVM_SETICONSPACING wParam = 0; lParam = (LPARAM) MAKELONG(cx, cy);Sets the spacing between icons in list view controls that have the LVS_ICON style. You can send this message explicitly or by using the ListView_SetIconSpacing macro.
- Returns a DWORD value that contains the previous cx in the low word and the previous cy in the high word.
- cx
- Distance, in pixels, to set between icons on the x-axis. Setting this value to -1 resets the cx parameter to default spacing.
- cy
- Distance, in pixels, to set between icons on the y-axis. Setting this value to -1 resets the cy parameter to default spacing.
Values for cx and cy are relative to the upper-left corner of an icon bitmap. Therefore, to set spacing between icons that do not overlap, the cx or cy values must include the size of the icon, plus the amount of empty space desired between icons. Values that do not include the width of the icon will result in overlaps.
Version 4.70
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.