Article View: borland.public.cppbuilder.nativeapi
Article #89Re: windows taskbar button
From: PaoloItaly
Date: Mon, 23 Jun 2008 08:32
Date: Mon, 23 Jun 2008 08:32
45 lines
2110 bytes
2110 bytes
> The only way is to create/destroy top-level, unowned, WS_EX_APPWINDOW
> windows.
My code:
void __fastcall TFormShowWindow::CreateParams(TCreateParams &Params)
{
TForm::CreateParams(Params);
Params.ExStyle |= WS_EX_APPWINDOW;
}
void __fastcall TFormShowWindow::NewWindowProc(TMessage &Msg)
{
switch(Msg.Msg)
{
case WM_EXITSIZEMOVE:
if (Parent == parent)
{
BorderStyle = bsSizeable;
Parent = NULL;
Top = ptCurrent.y;
Left = ptCurrent.x;
Width = Width - 20;
Height = Height - 20;
}
else
{
BorderStyle = bsToolWindow;
Top = parent->ClientRect.Top;
Left = parent->ClientRect.Left;
Width = parent->ClientRect.Right;
Height = parent->ClientRect.Bottom;
Parent = parent;
}
break;
}
}
The problem is that when i set Parent to NULL, the taskbar is updated but
the
ALT-TAB selection i can't find it, and the main form can't raise to the top.
Thanks for Your help
Ciao
Technical Details
Message-ID:
<485f5fb8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.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>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> Subject: Re: windows taskbar button Date: Mon, 23 Jun 2008 10:32:18 +0200 Lines: 47 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: <485f5fb8$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1214209976 88.46.71.125 (23 Jun 2008 01:32:56 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail