🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Hiding Application from Taskbar but keep it visible at all times even after show desktop is pressed

#5857
From: Remy Lebeau (TeamB)
Date: Mon, 27 Jun 2005 18:41
29 lines
2072 bytes
"Daniel Mayo" <dmayo@reply.via.newsgroup.com> wrote in message
news:42bff8d3@newsgroups.borland.com...

> How can I hide my application from task bar so that it
> doesn't show up on the taskbar (and an alt-tab request)

The only way to do that reliably is to give the TApplication window the
WS_EX_TOOLWINDOW style:

    Hide the application's taskbar icon
    http://web.archive.org/web/20040623154847/bcbdev.com/faqs/faq4.htm

> while also having the application always be visible

That is simply a matter of keeping the main form visible, which has nothing
to do with TApplication's visibility.

> even after the show desktop button is pressed, albeit not on top
> (eg, "sent to back" but  sized on the screen appropriately).

As far as I know, there is no way to know when the "Show Desktop" button is
clicked.  All it does is loops through the available windows hiding/showing
them as needed, which is no different than when the user does it maually.
Even then, if you could intercept the window being hidden, I don't think you
can prevent the OS from hiding it.


Gambit
Technical Details
Message-ID: <42c04866$4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42bff8d3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f3b59fbc8b1645f0
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42bff8d3@newsgroups.borland.com>
Subject: Re: Hiding Application from Taskbar but keep it visible at all times even after show desktop is pressed
Date: Mon, 27 Jun 2005 11:41:52 -0700
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <42c04866$4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1119897702 68.69.17.41 (27 Jun 2005 11:41:42 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail