How to detect newline in rich edit text control

Hi,
I'm trying to detect the occurrence of a newline among some text typed into a text edit control.

What is the correct way to do this?

I've tried the following:

1
2
3
else if(m_RichEditor.GetSelText() == "\n") {
            OutputDebugString((CString)"here");
		}


but this doesn't work....
Topic archived. No new replies allowed.