CListCtrl::SetCallbackMask
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

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));
Show:
© 2016 Microsoft