🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages Started by Buster Wed, 07 May 2003 19:44
Stray taskbar buttons on older Windows versions
#16577
Author: Buster
Date: Wed, 07 May 2003 19:44
16 lines
1628 bytes
I'm testing my application on a friend's old laptop, running Windows
98. It works to a degree (see my other post for a different problem)
but, 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.

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. 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.

Any suggestions would be greatly appreciated.

Cheers,
Buster
Re: Stray taskbar buttons on older Windows versions
#16578
Author: Buster
Date: Wed, 07 May 2003 20:18
7 lines
1310 bytes
> I'm testing my application on a friend's old laptop, running Windows
> 98. It works to a degree (see my other post for a different problem)
[Snip]

That other post was going to be about underlining in RichEdit being
weird in Windows 98. I'm going to work on it for a while before
(possibly) posting.
Re: Stray taskbar buttons on older Windows versions
#16579
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads