Share via


CEdit::SetHighlight

Highlights a range of text that is displayed in the current edit control.

void SetHighlight(
     int ichStart, 
     int ichEnd
);

Parameters

Parameter

Description

[in] ichStart

Zero-based index of the first character in the range of text to highlight.

[in] ichEnd

Zero-based index of the last character in the range of text to highlight.

Remarks

This method sends the EM_SETHILITE 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.

See Also

Reference

CEdit Class

Hierarchy Chart

CEdit::GetHighlight

EM_SETHILITE