다음을 통해 공유


CListCtrl::GetItemSpacing

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

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

Parameters

Parameter

Description

[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.

Return Value

true if this method is successful; otherwise, false.

Remarks

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

Requirements

Header: afxcmn.h

This method is supported in Windows NT 3.51 and later.

See Also

Reference

CListCtrl Class

Hierarchy Chart

LVM_GETITEMSPACING

Other Resources

CListCtrl Members