By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,903 Members | 1,856 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,903 IT Pros & Developers. It's quick & easy.

OnKillFocus, not working with topmost window

P: n/a
Hi,

I have a Dlg, and i used SetWindowpos(...) to ensure that it is the top most
window.
But, i also want to ensure that i never looses the focus for that window.

If i click on another window and want the focus to return to my window until
the user has finished with it.

How could that be done?

Many Thanks

Sims
Jul 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Sims" <si*********@hotmail.com> wrote in message news:<bv************@ID-162430.news.uni-berlin.de>...
Hi,

I have a Dlg, and i used SetWindowpos(...) to ensure that it is the top most
window.
But, i also want to ensure that i never looses the focus for that window.

If i click on another window and want the focus to return to my window until
the user has finished with it.

How could that be done?


Are you talking about a system-wide modal dialog? If so, you can set
your dialog to have that property. I've never done it, so I can't tell
you how, but now you know what you're looking for...

HTH

Paul.
Jul 21 '05 #2

P: n/a
> >

Are you talking about a system-wide modal dialog? If so, you can set
your dialog to have that property. I've never done it, so I can't tell
you how, but now you know what you're looking for...


Hi,

Thanks for your input.

I don't think i want such drastic actions.
What i was after was to be the top most window, (and have the focus), for a
selected window.

For example, lets say that i start the calculator, i want my application to
display a dialog box and force the user to acknowledge it b4 he can do
anything.
I can get the window of the calculator but i cannot force the focus to
remain on my dialog box.

Sims
Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.