Announcement

Collapse
No announcement yet.

Keep Dialog Focus

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Keep Dialog Focus

    I have an application that pops up a 3 second license Dialog. I can get it
    to stay on top but not in FOCUS (Title bar is inactive). Is there a way to
    keep the Dialog Title Bar Active for the entire 3 seconds it is on the screen?

  • #2
    SetFocus() ???

    Or maybe just create with HWND_TOPMOST style?

    Or on WM_INITDIALOG, SetWindowPos() with HWND_TOPMOST for z-order parameter?

    At least one of these will work to have the INITIAL presentation as the active window. If you want to guarantee it remains that way... I don't think you can because the user can always Alt+tab and pick another process.

    Within your process, you can make sure that window stays active until exited by making it a child of the "main" window and using MODAL presentation. (Code not shown).

    MCM
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment

    Working...
    X