Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!sytung From: sytung@athena.mit.edu (Shuyuan Tung) Newsgroups: comp.windows.ms.programmer Subject: RE: Multiline Edit Controls Message-ID: <1991Jun24.184747.9732@athena.mit.edu> Date: 24 Jun 91 18:47:47 GMT Sender: news@athena.mit.edu (News system) Distribution: comp.windows.ms.programmer Organization: Massachusetts Institute of Technology Lines: 22 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 to a - 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 - 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 key. In fact, as soon as I press the key, the stream of messages generated by holding down the 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 -J. Any ideas as to what may be going wrong? Thanks in advance.