Article View: borland.public.cppbuilder.nativeapi
Article #8194Re: Use SendMessage() to bring a Window to Top?
From: Vladimir Stefanovic
Date: Mon, 15 Nov 2004 15:30
Date: Mon, 15 Nov 2004 15:30
44 lines
1741 bytes
1741 bytes
Of course, maybe something like this:
// To restore
SendMessage ( Application->MainForm->Handle, WM_USER + 1011, 0,
0 );
// To bring to front
SendMessage ( Application->MainForm->Handle, WM_USER + 1012, 0,
0 );
void __fastcall TForm1::WndProc( TMessage &Msg )
{
switch ( Msg.Msg )
{
case WM_USER + 1011:
Application->Restore();
break;
case WM_USER + 1012:
Application->BringToFront();
break;
}
TForm::WndProc( Msg );
}
Best regards,
Vladimir Stefanovic
PC Hua <home-AT-huaonline.DOT.com> wrote in message
news:opshhc1ge9pmxkmr@newsgroups.borland.com...
> Is it possible to use SendMessage() to bring a Window to the top?
>
> thanks
> Phuoc Can HUA
>
> --
> _/\__/\__/\__/\__/\__/\_
> www.folksfun.com
Technical Details
Message-ID:
<4198cbb0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!newsprint.newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<opshhc1ge9pmxkmr@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,79846373e9a24766 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Vladimir Stefanovic" <spam@not.needed> Newsgroups: borland.public.cppbuilder.nativeapi References: <opshhc1ge9pmxkmr@newsgroups.borland.com> Subject: Re: Use SendMessage() to bring a Window to Top? Date: Mon, 15 Nov 2004 16:30:16 +0100 Lines: 46 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: 213.137.116.174 Message-ID: <4198cbb0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1100532656 213.137.116.174 (15 Nov 2004 07:30:56 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!newsprint.newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail