Windows/MFC

CListCtrl SetExtendedStyle

aucd29 2013. 10. 2. 17:59
// 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);