CEdit::GetHighlight
Gets the indexes of the first and last characters in a range of text that is highlighted in the current edit control.
BOOL GetHighlight(
int* pichStart,
int* pichEnd
) const;
Parameters
Parameter |
Description |
---|---|
[out] pichStart |
Zero-based index of the first character in the range of text that is highlighted. |
[out] pichEnd |
Zero-based index of the last character in the range of text that is highlighted. |
Return Value
true if this method is successful; otherwise, false.
Remarks
This method sends the EM_GETHILITE message, which is described in the Windows SDK.
Requirements
Header: afxwin.h
This control is supported in Windows Vista and later.
Additional requirements for this method are described in Build Requirements for Windows Vista Common Controls.