CListCtrl::SetIconSpacing

CSize SetIconSpacing( int cx, int cy );

CSize SetIconSpacing( CSize size );

Return Value

A CSize object containing the previous values for icon spacing.

Parameters

cx

The distance (in pixels) between icons on the x-axis.

cy

The distance (in pixels) between icons on the y-axis.

size

A CSize object specifying the distance (in pixels) between icons on the x- and y-axes.

Remarks

This member function implements the behavior of the Win32 macro, ListView_SetIconSpacing, as described in the Platform SDK.

Example

// The pointer to my list view control.
extern CListCtrl* pmyListCtrl;

// Leave lots of space between icons.
pmyListCtrl->SetIconSpacing(CSize(100, 100));

CListCtrl OverviewClass MembersHierarchy Chart