Share via


CView::IsSelected

Called by the framework to check whether the specified document item is selected.

virtual BOOL IsSelected(
   const CObject* pDocItem 
) const;

Parameters

  • pDocItem
    Points to the document item being tested.

Return Value

Nonzero if the specified document item is selected; otherwise 0.

Remarks

The default implementation of this function returns FALSE. Override this function if you are implementing selection using CDocItem objects. You must override this function if your view contains OLE items.

Requirements

Header: afxwin.h

See Also

Reference

CView Class

Hierarchy Chart

CDocItem Class

COleClientItem Class

Other Resources

CView Members