Article View: borland.public.cppbuilder.nativeapi
Article #91Re: windows taskbar button
From: PaoloItaly
Date: Tue, 24 Jun 2008 10:47
Date: Tue, 24 Jun 2008 10:47
15 lines
1744 bytes
1744 bytes
> In order for such a window to appear on the Taskbar, you need to change
> the parent window to be the Desktop as well, ie:
>
> void __fastcall TFormShowWindow::CreateParams(TCreateParams &Params)
> {
> TForm::CreateParams(Params);
> Params.ExStyle |= WS_EX_APPWINDOW;
> Params.WndParent = ::GetDesktopWindow(); // <-- add this
> }
>
I'm trying to undock/dock a form on a tabsheet, with messages
WM_ENTERSIZEMOVE, WM_EXITSIZEMOVE.
I succescfully undock/dock the form, but if i push the taskbar button of
MainForm, MainForm don't bring to front, i've to click the caption bar
or minimize undocked form to have focus.
Technical Details
Message-ID:
<4860d0ea@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<485bccb4$1@newsgroups.borland.com> <485bde8c$3@newsgroups.borland.com> <485f5fb8$1@newsgroups.borland.com> <485fd5ed$3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ea9b98221fcfab87 X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "PaoloItaly" <paolot@sirius-es.it> Newsgroups: borland.public.cppbuilder.nativeapi References: <485bccb4$1@newsgroups.borland.com> <485bde8c$3@newsgroups.borland.com> <485f5fb8$1@newsgroups.borland.com> <485fd5ed$3@newsgroups.borland.com> Subject: Re: windows taskbar button Date: Tue, 24 Jun 2008 12:47:29 +0200 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 88.46.71.125 Message-ID: <4860d0ea@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1214304490 88.46.71.125 (24 Jun 2008 03:48:10 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail X-Original-Bytes: 1571