Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CListCtrl::SetExtendedStyle

Sets the current extended styles of a list view control.

DWORD SetExtendedStyle(
   DWORD dwNewStyle 
);

Parameters

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 Platform SDK.

Return Value

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

Remarks

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

Example

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

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

See Also

CListCtrl Overview | Class Members | Hierarchy Chart | CListCtrl::CreateEx | CListCtrl::GetExtendedStyle

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.