Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!mephisto!prism!gt3070b From: gt3070b@prism.gatech.EDU (Jeff Watkins) Newsgroups: comp.windows.ms Subject: Dialog Boxes Message-ID: <13163@hydra.gatech.EDU> Date: 30 Aug 90 04:39:24 GMT Organization: Convergent Media Systems Lines: 59 Well, I've been having some trouble getting the login dialog box working for my cli. The problem is that the edit controls do not send any messages when I strike the enter or the tab key. Am I setting up the styles incorrectly? The following is a code clip from a .dlg file produced by Dialog.exe: LOGIN DIALOG LOADONCALL MOVEABLE DISCARDABLE 11, 19, 136, 72 STYLE WS_DLGFRAME | WS_VISIBLE | WS_POPUP BEGIN CONTROL "", 100, "edit", ES_LEFT | WS_BORDER | WS_TABSTOP | WS_CHILD | WS_GROUP, 56, 9, 72, 12 CONTROL "", 106, "edit", ES_LEFT | ES_PASSWORD | WS_BORDER | WS_TABSTOP | WS_CHILD, 56, 24, 72, 12 CONTROL "User ID", -1, "static", SS_RIGHT | WS_CHILD, 17, 11, 35, 8 CONTROL "Password", -1, "static", SS_RIGHT | WS_CHILD, 17, 26, 35, 8 CONTROL SHELLICON, -1, "static", SS_ICON | WS_CHILD, 6, 7, 16, 16 CONTROL "LOGIN", 107, "button", BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 55, 43, 29, 23 END my dialog box function looks as follows: BOOL FAR PASCAL LoginProc( HWND hDlg, unsigned messg, WORD wParam, LONG lParam ) { switch(messg) { case WM_INITDIALOG: return FALSE; break; case WM_COMMAND: switch (wParam) { case IDOK: case IDC_LOGIN: DestroyWindow( hDlg ); break; default: return FALSE; } break; default: return FALSE; } return TRUE; } So just what am I doing wrong here? I pound on my enter and tab keys until the springs threaten to break of, but nothing happens. No messages are sent to my dialog function. (Boldface on)NO(Boldface off) messages are sent at all! Help! jeff -- Jeff Watkins gt3070b@prism.gatech.edu Convergent Media Systems (404) 315-0105 voice (404) 315-0231 data "I speak for no-one. AND NO-ONE SPEAKS FOR ME... oh, yes, _dear_...I gotta go..."