🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10018

Re: Run Once

#10018
From: Remy Lebeau (TeamB)
Date: Mon, 31 May 2004 00:27
23 lines
1678 bytes
"JD" <nospam@nospam.com> wrote in message
news:40ba78cc$1@newsgroups.borland.com...

> As I said in my original post, I can't determine
> the window state

That is not what Bob is suggesting.  Do not have the second instance try to
detect the first instance's state.  Just have the second instance post a
message to the first instance telling it what it needs to do, then have the
first instance update its own state when needed.

> - be it from ... within the WndProc of the first instance.

Yes, you can determine the app's current state from within its own
WndProc().

> I have to know if I need to restore the window or just bring it to front.

An app always knows whether it is currently minimized or not.


Gambit
Technical Details
Message-ID: <40ba7ce2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40b9cff4$1@newsgroups.borland.com> <k5ikb0dppip15jep979bhuf7g148fsp3lj@4ax.com> <40ba78cc$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,55fa8aeaf57fcad1
X-Google-Attributes: gid10cc67,public
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40b9cff4$1@newsgroups.borland.com> <k5ikb0dppip15jep979bhuf7g148fsp3lj@4ax.com> <40ba78cc$1@newsgroups.borland.com>
Subject: Re: Run Once
Date: Sun, 30 May 2004 17:27:00 -0700
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 67.22.135.163
Message-ID: <40ba7ce2$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1085963490 67.22.135.163 (30 May 2004 17:31:30 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail