Article View: borland.public.cppbuilder.nativeapi
Article #6600Re: Avoiding multiple programinstances and restore the firstone
From: Hans Galema
Date: Tue, 26 Apr 2005 07:14
Date: Tue, 26 Apr 2005 07:14
11 lines
1356 bytes
1356 bytes
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. Hans.
Technical Details
Message-ID:
<426deaeb$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!proxad.net!gatel-ffm!gatel-ffm!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4268dde6$1@newsgroups.borland.com> <426de1fe$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 Date: Tue, 26 Apr 2005 09:14:22 +0200 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Avoiding multiple programinstances and restore the firstone References: <4268dde6$1@newsgroups.borland.com> <426de1fe$1@newsgroups.borland.com> In-Reply-To: <426de1fe$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.201.248 Message-ID: <426deaeb$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1114499819 129.125.201.248 (26 Apr 2005 00:16:59 -0700) Lines: 11 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!proxad.net!gatel-ffm!gatel-ffm!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail