Calculates the spacing between items in the current list-view control.

BOOL GetItemSpacing(
     BOOL fSmall, 
     int* pnHorzSpacing, 
     int* pnVertSpacing
) const;



[in] fSmall

View for which to retrieve the item spacing. Specify true for small icon view, or false for icon view.

[out] pnHorzSpacing

Contains the horizontal spacing between items.

[out] pnVertSpacing

Contains the vertical spacing between items.

true if this method is successful; otherwise, false.

This method sends the LVM_GETITEMSPACING message, which is described in the Windows SDK.

Header: afxcmn.h

This method is supported in Windows NT 3.51 and later.