🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Run Once

#10012
From: JD
Date: Sun, 30 May 2004 18:16
18 lines
1520 bytes
Hans Galema <dontusethis@dontusethis.nl> wrote:
>JD wrote:
>
>>               Application->Title = "";
>>               // If the Main form is an MDIParent, doesn't that mean
>>               // that FindWindow can fail here because the user can
>>               // maximize a Child form, changing the MDIParent's caption?
> >               HWND hWnd = ::FindWindow( NULL, "My Window Caption" );
>
>You could easily answer that question yourself and report here.

Well it does. I just wanted to know if there was another method
of finding the window that was (more) reliable. It looks like
I'm gonna have to make the class name unique and use just it
with FindWindow but earlier tests were suspect.

~ JD
Technical Details
Message-ID: <40ba2507$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> <40b9ed78$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.161.73.184     
References: <40b9cff4$1@newsgroups.borland.com> <40b9ed78$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <40ba2507$1@newsgroups.borland.com>
Date: 30 May 2004 11:16:39 -0700
X-Trace: newsgroups.borland.com 1085940999 207.105.83.66 (30 May 2004 11:16:39 -0700)
Lines: 19
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