tags:

views:

29

answers:

1

I've got a CRichEdit that I need to get the text from. What is the best way to do that? GETTEXTEX? StreamOut? If I go the StreamOut approach, what would my callback look like?

A: 

It's inherited from CWnd so you should just be able to use GetWindowText().

CString returnText;
yourRichEdit.GetWindowText(returnText);
Ben Burnett