Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!stanford.edu!leland.Stanford.EDU!stergios From: stergios@portia.Stanford.EDU (Stergios) Newsgroups: comp.windows.ms.programmer Subject: Multiline Edit Control in Dialog Message-ID: Date: 18 Jun 91 15:34:11 GMT Sender: news@leland.Stanford.EDU (Mr News) Reply-To: stergios@kt22.Stanford.EDU Organization: AIR, Stanford University Lines: 34 Hi Gang, got a question/problem I hope you can help me with. SYNOPSIS: Multiline edit control causes dialog box to go away when the return key is pressed. DESCRIPTION: I have a multiline edit crontrol in a dialog box. The flags for the edit crontrol appearing in the resource are: ES_MULTILINE | WS _TABSTOP | WS_BORDER | WS_VISBLE | WS_CHILD Nothing fancy about that. I have tried adding ES_AUTOVSCROLL. The multiline edit would then automatically scroll when it was time to wordwrap, as one would expect, but still exhibit the same behaviour when the return key was pressed. Could it be that a dialog default push button listens on the input stream and accepts all returns no matter where the input focus is? Obviously, I do not completely understand dialogs. Can some clear things up for me? Thanks, Stergios Marinopoulos stergios@kt22.Stanford.EDU -- Stergios Marinopoulos stergios@kt22.Stanford.EDU