Article View: borland.public.cppbuilder.nativeapi
Article #2174Re: Foreground another application
From: Remy Lebeau (TeamB)
Date: Fri, 20 Apr 2007 21:22
Date: Fri, 20 Apr 2007 21:22
17 lines
1470 bytes
1470 bytes
"JD" <nospam@nospam.com> wrote in message
news:462928d0$1@newsgroups.borland.com...
> HWND hWnd = reinterpret_cast<HWND>( ::GetWindowLong(TargetHwnd,
GWL_HWNDPARENT) );
Use GetParent() instead:
HWND hWnd = ::GetParent(TargetHwnd);
Also, keep in mind that in BDS 2007, the TApplication object no longer
controls the taskbar button. I'm not sure if the TApplication window
is even still the parent for TForm windows anymore.
Gambit
Technical Details
Message-ID:
<46292f2e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feed.xsnews.nl!border-1.ams.xsnews.nl!193.201.147.79.MISMATCH!transit4.hitnews.eu!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!feeder08.uucp.at!feeder10.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<4625ec79$1@newsgroups.borland.com> <462928d0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,25ea57fd64e945c2 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4625ec79$1@newsgroups.borland.com> <462928d0$1@newsgroups.borland.com> Subject: Re: Foreground another application Date: Fri, 20 Apr 2007 14:22:49 -0700 Lines: 19 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: 75.82.60.244 Message-ID: <46292f2e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1177104174 75.82.60.244 (20 Apr 2007 14:22:54 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feed.xsnews.nl!border-1.ams.xsnews.nl!193.201.147.79.MISMATCH!transit4.hitnews.eu!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!feeder08.uucp.at!feeder10.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail