Obtains the color of selected text in a RichTextEdit control.
RichTextEdit controls
rtename.GetTextColor ( )
Long. Returns the long value that specifies the color of the currently selected text. If text of different colors is selected, GetTextColor returns the color of the first selected character. GetTextColor returns -1 if an error occurs.