CListCtrl::SetCallbackMask 

Sets the callback mask for a list view control.


BOOL SetCallbackMask(
   UINT nMask 
);

Parameters

nMask

New value of the callback mask.

Nonzero if successful; otherwise zero.

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

// Set the callback mask so that only the selected and focused states
// are stored for each item.
pmyListCtrl->SetCallbackMask(LVIS_SELECTED|LVIS_FOCUSED);
ASSERT(pmyListCtrl->GetCallbackMask() == 
   (LVIS_SELECTED|LVIS_FOCUSED));

Community Additions

ADD
Show: