Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
MFC
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

CListCtrl::SetCallbackMask

Sets the callback mask for a list view control.

BOOL SetCallbackMask( 
   UINT nMask  
);

nMask

New value of the callback mask.

Nonzero if successful; otherwise zero.

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

Header: afxcmn.h

Community Additions

ADD
Show:
© 2015 Microsoft