Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!cs.umn.edu!ariel.unm.edu!nmsu!opus!ghenniga From: ghenniga@nmsu.edu (Gary Hennigan) Newsgroups: comp.windows.ms.programmer Subject: Alt keys in Dialog Boxes Message-ID: Date: 1 Jun 91 21:14:36 GMT Article-I.D.: tesla.GHENNIGA.91Jun1151436 Sender: news@NMSU.Edu Distribution: comp Organization: New Mexico State University Lines: 19 I'm trying to get a listbox within a Dialog Box to respond to the Alt+ to put focus on the list box. This particular list box contains a list of files in the current directory. I've defined a static text field directly above it with "&Files". When I press Alt+F it sends my Dialog procedure a WM_COMMAND message with wParam -> IDCANCEL, not exactly what I had in mind. This is probably covered in the Win. Prog. Guide but I just shelled out $70 for Petzold and the Ref. so I'll have to hold off on the Guide. If someone can assist me and needs more details let me know and I'll e-mail the details to you. Thanks tremendously! -- Gary Hennigan +---------------------------------------------------------------------------+ + e-mail: ghenniga@NMSU.Edu, henninsf@maxwel.NMSU.Edu + + Electrical Engineering; PhD Student, Computational Electromagnetics + + Physical Science Laboratory (ASS)istant systems programmer + +---------------------------------------------------------------------------+