다음을 통해 공유


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

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

Requirements

Header: afxcmn.h

See Also

Concepts

CListCtrl Class

CListCtrl Members

Hierarchy Chart

CListCtrl::GetCallbackMask