Re: Force warning into focus ?

From: Rob Kennedy (me3_at_privacy.net)
Date: 05/26/04

  • Next message: Jeremy Collins: ".NET marches on...."
    Date: Wed, 26 May 2004 10:19:54 -0500
    
    

    Walker wrote:
    > I have found a funny (and quite dirty :-) way around this.
    >
    > If an application minimizes and then restores itself it is now in the
    > foreground.
    > It does not look pretty and it takes a second or so, but it works.

    Why solve it through dirty tricks when you can do it the right way?
    You've already said that your applications are communicating with each
    other -- cooperating, I assume. That's exactly the scenario that
    AllowSetForegroundWindow and SetForegroundWindow's new behavior are
    designed for.

    > This can deep down Microsoft have something to do with that the minimized
    > app. asks the system to bring a form into focus ?

    Um, would you like to try writing the beginning of that sentence again?

    I wonder whether the behavior you've witnessed is unique to Borland
    products or whether it applies to all programs. (Applications made with
    Delphi and C++ Builder have a different concept of what a program's
    "main" window is.)

    -- 
    Rob
    

  • Next message: Jeremy Collins: ".NET marches on...."

    Relevant Pages

    • Re: Applications sluggish after inactivity
      ... How do you change between background and foreground applications? ... providing Windows doesn't need RAM for something else ATM. ... How much of pocesses private virtual address space is stored in paging file? ...
      (microsoft.public.windowsxp.perform_maintain)
    • Re: ShellExecute
      ... I've got two applications that run in fullscreen. ... So the new opened application shows up in the foreground. ... switch without any 'mess' in between. ... >> What I want is that the program I'm executing will stay in the ...
      (alt.comp.lang.borland-delphi)
    • Re: How do I stop windows stealing the foreground?
      ... Specifies the time, following user input, during which the system will not ... allow applications to force themselves into the foreground. ... the window will automatically be brought to the ...
      (microsoft.public.win2000.general)
    • Re: Running applicatin on top
      ... I guess you don't want to allow execution ... of applications other than yours (This mode of operation also known as ... your application window is in foreground, if its not, the ... Or you can use a product like PocketKiosk Builder at ...
      (microsoft.public.pocketpc.developer)