🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: hide/show system tray question

#13422
From: Martin C
Date: Sun, 12 Oct 2003 02:59
40 lines
2052 bytes
Hi Remy,

I am using the following code to show/hide taskbar, but I really can't find
the system tray window handle, or at least how to get it by code...do you
have any idea how I can accomplish this...

HWND TaskbarWindow;
TaskbarWindow = FindWindow("Shell_TrayWnd", NULL);
if(TaskbarWindow != 0)
{ ShowWindow(TaskbarWindow, SW_SHOWNORMAL);
}


P.S. Yes I mean system tray show/hide, I am using it cause it is like a part
of my project features...nothing more..

thanks for your help and support...

BR


"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message
news:3f88bd9d$1@newsgroups.borland.com...
>
> "Martin C" <martinc@aol.com> wrote in message
> news:3f88ba6b@newsgroups.borland.com...
>
> > Does anyone know the api for show/hide the system tray.
>
> There isn't any for that particular purpose.  The best you can do is use
> FindWindow(), GetWindow(), and ShowWindow() to locate the HWND for the
> system tray and then hide it manually.
>
> Why would you want to hide the system tray, anyway?  Or do you mean the
> taskbar instead?
>
>
> Gambit
>
>
Technical Details
Message-ID: <3f88c3a5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f88ba6b@newsgroups.borland.com> <3f88bd9d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,eb5a844aefa46a0c
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-11 20:06:24 PST
From: "Martin C" <martinc@aol.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f88ba6b@newsgroups.borland.com> <3f88bd9d$1@newsgroups.borland.com>
Subject: Re: hide/show system tray question
Date: Sat, 11 Oct 2003 18:59:50 -0800
Lines: 42
Organization: V Safe
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: 81.10.4.238
Message-ID: <3f88c3a5$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1065927589 81.10.4.238 (11 Oct 2003 19:59:49 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail