gettingstarted
[Top] [All Lists]

Re: Win32 app - Double-clicking on doc icon opens app in new window

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Win32 app - Double-clicking on doc icon opens app in new window
From: Lennox Jacob <lenpartico at yahoo dot com>
Date: Thu, 30 Jun 2005 16:47:13 -0700 (PDT)
Delivered-to: gettingstarted at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=RGrirSYtIq1bcdQRVerQ5zKuCHCRRo7+u9ihAiASkuMVDpfwO2uKvGzYTR+yLMfGz1SWvxiZfJGxKYkn8BQzmiXXw1bpQ/BgYN+cVbtdPWqXqtZQq26LSaKpWI+aP6ICX3P/qyMbedw9M0JbI21Itd3Hk4z3iKqiVZd+OWfvl1Y= ;
Hi Aaron,

I did as you recommended and made a mutex, it works
fine - it would only allow one instance of the app to
open and also only one window to open.

I checked the Language FReference and an example of an
"IPCSocket Class" was given. I did it.

In IPCSocket 1/connected I added this , to test it:
msgbox "connection made"

When I try to open two documents the message
"connecrion made" comes up, so I know that it is
working.


What would be great now is if on double-clicking on
the second document's icon (of the same app);
a)if it is the already opened document, don't open
another window but bring that window frontmost, or
b) if it is a different document (of the same app)then
also open that document in another window, and bring
that window frontmost.

How do I implement that?

Any help would be appreciated.

Lennox.


                
__________________________________ 
Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 
http://discover.yahoo.com/weekend.html 

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>