Article View: borland.public.cppbuilder.nativeapi
Article #90Re: windows taskbar button
From: Remy Lebeau (TeamB)
Date: Mon, 23 Jun 2008 16:40
Date: Mon, 23 Jun 2008 16:40
22 lines
1699 bytes
1699 bytes
"PaoloItaly" <paolot@sirius-es.it> wrote in message
news:485f5fb8$1@newsgroups.borland.com...
> void __fastcall TFormShowWindow::CreateParams(TCreateParams &Params)
> {
> TForm::CreateParams(Params);
> Params.ExStyle |= WS_EX_APPWINDOW;
> }
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
}
Gambit
Technical Details
Message-ID:
<485fd5ed$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!195.114.231.69.MISMATCH!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<485bccb4$1@newsgroups.borland.com> <485bde8c$3@newsgroups.borland.com> <485f5fb8$1@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <485bccb4$1@newsgroups.borland.com> <485bde8c$3@newsgroups.borland.com> <485f5fb8$1@newsgroups.borland.com> Subject: Re: windows taskbar button Date: Mon, 23 Jun 2008 09:40:51 -0700 Lines: 24 Organization: Lebeau Software 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: 207.178.157.90 Message-ID: <485fd5ed$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1214240237 207.178.157.90 (23 Jun 2008 09:57:17 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!195.114.231.69.MISMATCH!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail