🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2713

Focus in Dialog Box?

#2713
From: Gary Hennigan
Date: Fri, 17 May 1991 20:12
14 lines
1233 bytes
I'm having a little problem with a Dialog box I hope someone can help with.
I've set up the dialog box with IDOK and IDCANCEL but there are certain
child controls that, when the user is in them, I don't wish to process the
IDOK message when the RET key is pressed. Is there any way to determine
which child control within the dialog box has the input focus based on the
Dialog ID of the child control? In particular I don't wish the RET key to
generate an IDOK if the user is in the "Filter" Edit control in an Open file
dialog box, in other child controls, however, I would still like the RET key
to generate the IDOK message in wParam. Any ideas? Unfortunately I haven't
purchased any of the SDK documentation yet so I'm stuck with Petzhold's book
and the online SDK in BC++. You definately need some of the SDK material!

Thanks,
Technical Details
Message-ID: <GHENNIGA.91May17141256@hertz.ee>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!cs.umn.edu!ariel.unm.edu!nmsu!opus!ghenniga

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!cs.umn.edu!ariel.unm.edu!nmsu!opus!ghenniga
From: ghenniga@hertz.ee (Gary Hennigan)
Newsgroups: comp.windows.ms.programmer
Subject: Focus in Dialog Box?
Message-ID: <GHENNIGA.91May17141256@hertz.ee>
Date: 17 May 91 20:12:56 GMT
Sender: news@NMSU.Edu
Distribution: comp
Lines: 14