OnKillFocus, not working with topmost window

  • Thread starter Thread starter Sims
  • Start date Start date
S

Sims

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
 
Sims said:
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.
 
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
 
Back
Top