🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #3368

RE: Multiline Edit Controls

#3368
From: Shuyuan Tung
Date: Mon, 24 Jun 1991 18:47
22 lines
1452 bytes
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.
Technical Details
Message-ID: <1991Jun24.184747.9732@athena.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!sytung

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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