Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual C++
Reference
Libraries Reference
MFC
Classes
CRichEditCtrl Class
Member Functions
 CRichEditCtrl::HideSelection
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
MFC Library Reference 
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);
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker