🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Avoiding multiple programinstances and restore the firstone

#6607
From: JD
Date: Tue, 26 Apr 2005 18:03
25 lines
1762 bytes
Hans Galema <notused@notused.nl> wrote:
>JD wrote:
>
>>>             ::SendMessage( hwnd, WM_SYSCOMMAND, SC_RESTORE, 0);
>>>             ::SetForegroundWindow( hwnd );
>> 
>> This code is problematic if the window is not minimized
>> because it will disable the Minimize border icon.
>
>That does not happen here. Bcb5 on XP.

I recalled that it would disable biMinimize but reading my
comments in the code tells me that that may not be the exact
problem.

I can tell you for certain that it's not an issue with the VCL
(Gambit helped me track that down) and that it is in fact a
problem with Windows. Since I developed it on an XP machine,
I would suggest that you assume that I was inaccurate with my
description of the problem and take another look, being sure
to leave the first instance restored and testing outside of
the IDE.

~ JD
Technical Details
Message-ID: <426e8282$3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4268dde6$1@newsgroups.borland.com> <426de1fe$1@newsgroups.borland.com> <426deaeb$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fd5c6cb9a40ec609
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: Avoiding multiple programinstances and restore the firstone
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 172.156.224.67     
References: <4268dde6$1@newsgroups.borland.com> <426de1fe$1@newsgroups.borland.com> <426deaeb$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <426e8282$3@newsgroups.borland.com>
Date: 26 Apr 2005 11:03:46 -0700
X-Trace: newsgroups.borland.com 1114538626 207.105.83.66 (26 Apr 2005 11:03:46 -0700)
Lines: 26
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail