CRichEditCtrl::HideSelection

void HideSelection( BOOL bHide, BOOL bPerm );

Parameters

bHide

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

pPerm

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

Remarks

Call the function to change the visibility of the selection.

When pPerm 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 Win32 documentation.

Example

// The pointer to my rich edit control.
extern CRichEditCtrl* pmyRichEditCtrl;

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

CRichEditCtrl OverviewClass MembersHierarchy Chart

See Also   CRichEditCtrl::SetSel, CRichEditCtrl::GetSelectionType