Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content


Retrieves the selection mark of a list view control.

int GetSelectionMark( );

The zero-based selection mark, or -1 if there is no selection mark.

This member function implements the behavior of the Win32 macro, ListView_GetSelectionMark, as described in the Windows SDK.

	// Set the selection mark to the first item only if no other item is  
	// selected. 
	if (m_myListCtrl.GetSelectionMark() == -1)

Header: afxcmn.h

© 2015 Microsoft