🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16579

Re: Stray taskbar buttons on older Windows versions

#16579
From: Remy Lebeau (TeamB)
Date: Wed, 07 May 2003 21:10
27 lines
1950 bytes
"Buster" <rcopley@ukonline.co.uk> wrote in message
news:3eb961c6@newsgroups.borland.com...
> when the user closes the application, its taskbar button
> is not removed. Either it just stays the same, or the icon
> and text are erased leaving a blank grey button on the taskbar.

Old bug.  It's a problem with Windows itself, not Borland's code.

> I remember when I used to use Windows 98, I had a
> copy of C++ Builder 3 off the front of a magazine and
> all the programs I wrote had the same problem.

Yup, because it was a problem in Windows itself, not Builder.

> I just ignored it then, since the work was just for my
> personal edification, but I want to sell this product,
> so I'd like it to work as expected, and kill the
> taskbar button.

You'll have to remove the taskbar button manually before fully closing your
application.  Try using the following call during shutdown:

     ShowWindow(Application->Handle, SW_HIDE);


Gambit
Technical Details
Message-ID: <3eb975f6@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3eb961c6@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,520e3d7565870ad9
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-07 14:17:58 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3eb961c6@newsgroups.borland.com>
Subject: Re: Stray taskbar buttons on older Windows versions
Date: Wed, 7 May 2003 14:10:56 -0700
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3eb975f6@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1052341750 207.175.226.26 (7 May 2003 14:09:10 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail