Article View: comp.windows.ms.programmer
Article #242Dialog Data Entry
From: NIBMSCM
Date: Wed, 08 Apr 1992 15:20
Date: Wed, 08 Apr 1992 15:20
22 lines
1352 bytes
1352 bytes
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;
This is the same sequence of EN_xxx messages received the the dialog
procedure when moving from field-to-field using the Tab key, and yet
I don't get these messages back and they just plain don't work.
Anyone out there have a hint or pointer (C pun) in the right direction?
___________
| | Regards,
| ND ----> * Steve Malme -->steve@fbsdata.com<--
|____________| FBS Data Systems nibmscm@ndsuvm1.bitnet
Nike - "Just do it"
Technical Details
Message-ID:
<92099.102058NIBMSCM@NDSUVM1.BITNET>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!news.ysu.edu!ysub!psuvm!cunyvm!ndsuvm1!nibmscmShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!news.ysu.edu!ysub!psuvm!cunyvm!ndsuvm1!nibmscm Organization: North Dakota Higher Education Computer Network Date: Wednesday, 8 Apr 1992 10:20:58 CDT From: <NIBMSCM@NDSUVM1.BITNET> Message-ID: <92099.102058NIBMSCM@NDSUVM1.BITNET> Newsgroups: comp.windows.ms.programmer Subject: Dialog Data Entry