[comp.windows.ms.programmer] Multiline Edit Controls

sytung@athena.mit.edu (Shuyuan Tung) (06/25/91)

Sorry to beat this to death, but I too have been having trouble
getting my edit control window to skip to the next line.

I have tried the solution of subclassing the edit control and
processing the WM_KEYDOWN message.  This has worked for me in 
translating the <TAB> to a <CNTRL>-<TAB> and thus getting
a tab to appear in the control, but it does NOT work when I
try to capture the VK_RETURN.

In fact, the <CNTRL>-<ENTER> sequence isn't successful for me
either;  I checked the messages generated using SPY, and it seems
that I cannot generate a WM_KEYDOWN message with VK_RETURN key
while holding down the <CNTRL> key.  In fact, as soon
as I press the <ENTER> key, the stream of messages generated by holding
down the <CNTRL> key (repeated WM_GETDLGCODE, WM_KEYDOWN messages) stops.  

Currently the only way for me to get to the next line in the edit control
is <CNTRL>-J.

Any ideas as to what may be going wrong?

Thanks in advance.