I have a dialog derived from cformview.
On the dialog I have a single line edit control that I treat as a command line. What I need to do is recognize when when the user finshes typing command and its arguments. What I would normally do is check is '\n' is at the end of
the CString associated with the edit box. Problem is the '\n' gets stripped unless I use a multi-line edit box.
I really want a single line edit box.
if (m_CommandLine.Right(1) =='\n')
m_CommandLine is complete start parsing the command line
this only works if I resize my edit box from 1 line to 2 lines.
Any work around for this?
the styles on the Editbox are: Multiline,Auto Hscroll, Want Return