Re: Activate application running in system tray

From: alpine (alpine_don'tsendspam_at_mvps.org)
Date: 09/15/04


Date: Wed, 15 Sep 2004 08:25:24 -0600

Add a hidden window to your app for the purpose of responding to
second instances being started.

HTH,
Bryan
____________________________________________________________
New Vision Software "When the going gets weird,"
Bryan Stafford "the weird turn pro."
alpine_don'tsendspam@mvps.org Hunter S. Thompson -
Microsoft MVP-Visual Basic Fear and Loathing in LasVegas

On Wed, 15 Sep 2004 01:03:06 -0700, "Pooja"
<Pooja@discussions.microsoft.com> wrote:

>Hi,
>Thanks for the reply but this works fine if the application is minimized
>i.e. if the application is present in the Task Bar and not when the
>application is hidden i.e. in system tray. Can u plz suggest some other
>solution?
>
>Thanks,
>Pooja.
>
>"alpine" wrote:
>
>> On Tue, 14 Sep 2004 03:17:01 -0700, "Pooja"
>> <Pooja@discussions.microsoft.com> wrote:
>>
>> >Hi,
>> >I have an instance of the application already running. Its present in the
>> >system tray. now when i try to open a new instance of application, it should
>> >end the new one and activate the old instance and bring the window on top. I
>> >tried all the functions as in - FindWindow(), ShowWindow(),
>> >SetForegroundWindow(), GetWindow(), OpenIcon(), BringWindowToTop(),
>> >WinSetFocus().
>> >
>> >But the previous instance is just not getting activated. Someone plz help.
>> >
>> >Regards,
>> >Pooja.
>>
>>
>> You might want to have a look at the App Activate example at
>> http://www.mvps.org/vbvision/
>>
>> HTH,
>> Bryan
>> ____________________________________________________________
>> New Vision Software "When the going gets weird,"
>> Bryan Stafford "the weird turn pro."
>> alpine_don'tsendspam@mvps.org Hunter S. Thompson -
>> Microsoft MVP-Visual Basic Fear and Loathing in LasVegas
>>



Relevant Pages

  • Re: timer queue
    ... I did end up creating a hidden window that works ok. ... Invoke on a property does fail with "rpc not available" after the app is ... The problem comes in the timer callback. ...
    (microsoft.public.vc.atl)
  • Re: Window creation in win32 dll
    ... > replying as i was just going through MFC code. ... >>> I need to use winsock event model where i need to create hidden window ... >>> I am using HINSTANCE as a handle to DLL module ... I tried to use this dll in console app and win ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Mutex and messages
    ... HTH, ... > 2) New app opens. ... > 3) New app gets file name, and figures out another instance is open. ... >> args property when the app loads and try to open any files found there ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Doc/view benefit or not ?
    ... You could just make a Dialog App. ... HTH, ... > develop a simple SDI application without this Doc/View structure. ... > Could someone tell me in which topics such structure could make my life ...
    (microsoft.public.vc.mfc)
  • Re: "libexpat.so.5" not found
    ... one app demands an old version, is just symlink the old version to the new. ... To unsubscribe, send any mail to ...
    (freebsd-questions)