Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
MFC
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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.

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 Platform SDK.

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

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

Community Additions

ADD
Show:
© 2015 Microsoft