Article View: comp.windows.ms.programmer
Article #270Re: Dialog Data Entry
From: rocker
Date: Thu, 09 Apr 1992 15:22
Date: Thu, 09 Apr 1992 15:22
15 lines
1039 bytes
1039 bytes
In article <92099.102058NIBMSCM@NDSUVM1.BITNET>, NIBMSCM@NDSUVM1.BITNET writes: > Defining a dialog box that will be used for data entry, and would like the > user to have the ability to use the ENTER key to move between edit control > fields. So, I defined by OK button without the IDOK constant, and defined > a constant ENTER_KEY to catch the WM_COMMAND messages with wParam = 1. > > Under this case statement I'm doing: > > > case ENTER_KEY: > SendDlgItemMessage(... EN_KILLFOCUS ...); > SendDlgItemMessage(... EN_SETFOCUS ...); > break; Try WM_NEXTDLGCTL, instead of KILL/SETFOCUS.
Technical Details
Message-ID:
<1992Apr9.102208.852@desire.wright.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!uoft02.utoledo.edu!desire.wright.edu!rockerReferences:
<92099.102058NIBMSCM@NDSUVM1.BITNET>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!uoft02.utoledo.edu!desire.wright.edu!rocker Newsgroups: comp.windows.ms.programmer Subject: Re: Dialog Data Entry Message-ID: <1992Apr9.102208.852@desire.wright.edu> From: rocker@desire.wright.edu Date: 9 Apr 92 10:22:08 EST References: <92099.102058NIBMSCM@NDSUVM1.BITNET> Organization: Wright State University Lines: 15