Discussion:
keep dlg parent from losing focus?
(too old to reply)
Vincent Fatica
2009-08-20 14:17:09 UTC
Permalink
How do I keep the parent (console window) of a non-modal dialog box from losing
focus when the dialog is clicked?
--
- Vince
Vincent Fatica
2009-08-20 14:33:00 UTC
Permalink
On 20 Aug 2009 10:17:09 -0400, Vincent Fatica <***@blackholespam.net> wrote:

|How do I keep the parent (console window) of a non-modal dialog box from losing
|focus when the dialog is clicked?

I had tried the "no activate" property earlier and it didn't work. Now it's
working!
--
- Vince
David Webber
2009-08-20 19:38:30 UTC
Permalink
Post by Vincent Fatica
How do I keep the parent (console window) of a non-modal dialog box from losing
focus when the dialog is clicked?
You don't. Clicking the dialogue gives it the focus. However you can
give the focus back with SetFocus() when whatever task the dialogue is doing
has been accomplished.

However you may want to bear in mind that you can only use the keyboard on
the dialogue (eg to tab between controls) if it has the focus.

Dave
--
David Webber
Author of 'Mozart the Music Processor'
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mozartists/mailinglist.htm
Loading...