🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Run Once

#10019
From: JD
Date: Mon, 31 May 2004 00:40
36 lines
2105 bytes
"Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> wrote:
>
>"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.

I did that and it still didn't know what it's own state was.
As I stated in my original post, even from within the WndProc
method, the WindowState always evaluated to the last known
state PRIOR to being minimized.

Further, when I assumed it was minimized and restored it, I
had the problem with the minimize button.

>> - be it from ... within the WndProc of the first instance.
>
>Yes, you can determine the app's current state from within its own
>WndProc().

But it doesn't know. The WindowState *always* evalutes to the
last known state BEFORE it was minimized.

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

But it doesn't. Not for Hans either.

~ JD
Technical Details
Message-ID: <40ba7f15$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> <40ba7ce2$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: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: Run Once
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 172.169.97.211     
References: <40b9cff4$1@newsgroups.borland.com> <k5ikb0dppip15jep979bhuf7g148fsp3lj@4ax.com> <40ba78cc$1@newsgroups.borland.com> <40ba7ce2$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <40ba7f15$1@newsgroups.borland.com>
Date: 30 May 2004 17:40:53 -0700
X-Trace: newsgroups.borland.com 1085964053 207.105.83.66 (30 May 2004 17:40:53 -0700)
Lines: 37
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