Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Jun : Setting Application Input Focus
| Subject: | Setting Application Input Focus |
| Posted by: | "Graham Powell" (grah..@deephaven.co.uk) |
| Date: | Mon, 18 Jun 2007 10:41:07 |
Is it possible for my application to set the input focus to a dialog box it
has just created?
I have the situation where I am dragging a filename from say Windows
Explorer to my application. The application opens the file and it requires a
password. So a dialog box is generated, but the input focus is still back
with Windows Explorer. Is there an API call or Windows message I can send to
give this dialog box the focus. The user can then just start typing when the
box appears and doesn't have to click on it first.
Any help much appreciated.
Graham