Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CListCtrl::SetExtendedStyle
Collapse the table of content
Expand the table of content

CListCtrl::SetExtendedStyle

Sets the current extended styles of a list view control.

DWORD SetExtendedStyle( 
   DWORD dwNewStyle  
);

dwNewStyle

A combination of extended styles to be used by the list view control. For a descriptive list of these styles, see the Extended List View Styles topic in the Windows SDK.

A combination of the previous extended styles used by the list view control.

This member function implements the behavior of the Win32 macro, ListView_SetExtendedListViewStyle, as described in the Windows SDK.

	// Allow the header controls item to be movable by the user.
	m_myListCtrl.SetExtendedStyle
		(m_myListCtrl.GetExtendedStyle()|LVS_EX_HEADERDRAGDROP);

Header: afxcmn.h

Show:
© 2015 Microsoft