Export (0) Print
Expand All
Expand Minimize

CListCtrl::SetCallbackMask

Sets the callback mask for a list view control.

BOOL SetCallbackMask(
   UINT nMask 
);

Parameters

nMask
New value of the callback mask.

Return Value

Nonzero if successful; otherwise zero.

Example

// 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));

See Also

CListCtrl Overview | Class Members | Hierarchy Chart | CListCtrl::GetCallbackMask

Show:
© 2014 Microsoft