Delen via


CRichEditCtrl::HideSelection

Changes the visibility of the selection.

void HideSelection( 
   BOOL bHide, 
   BOOL bPerm  
);

Parameters

  • bHide
    Indicates if the selection should be shown or hidden, TRUE to hide the selection.

  • bPerm
    Indicates if this change in visibility for the selection should be permanent.

Remarks

When bPerm is TRUE, it changes the ECO_NOHIDESEL option for this CRichEditCtrl object. For a brief description of this option, see SetOptions. You can use this function to set all the options for this CRichEditCtrl object.

For more information, see EM_HIDESELECTION in the Windows SDK.

Example

// Show the selection and make it permanent. 
m_myRichEditCtrl.HideSelection(FALSE, TRUE);

Requirements

Header: afxcmn.h

See Also

Reference

CRichEditCtrl Class

Hierarchy Chart

CRichEditCtrl::SetSel

CRichEditCtrl::GetSelectionType