<< Return to Main Index

< Return to Class Index

CGXControl::GetSelectedText

virtual BOOL GetSelectedText(CString& strResult);

strResult

Reference to a string where the method stores the result.

Return Value

TRUE if text was selected; FALSE if no text was selected.

Remarks

This method returns the selected text of the current cell (e.g., in an edit window, this is the highlighted text).

If no text is selected but the caret is visible, the text to the right of the caret will be returned.

See Also

CGXControl::ReplaceSel CGXControl::FindText

CGXControl

Class Overview | Class Members