🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Move program into the system tray with SetWindowLong

#12036
From: Jan Weingärtner
Date: Tue, 30 Dec 2003 13:18
17 lines
1474 bytes
Hi.

I try to completely move my program into the system tray at runtime.
It works with one exception. 
A "rest" remains in the status bar: it's the rectangle whith the label 
but without the program icon.

This is my code:

SetWindowLong(Application->Handle, GWL_EXSTYLE,
    (GetWindowLong(Application->Handle, GWL_EXSTYLE) & (~WS_EX_APPWINDOW)) 
    | WS_EX_TOOLWINDOW);

Andy ideas ?

thanks and best regards,
Jan
Technical Details
Message-ID: <3ff17a91@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,3dad11c17b4bae3d,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-30 05:38:22 PST
User-Agent: Hamster/1.3.23.4
From: Jan Weingärtner <jweingart@gmx.de>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Move program into the system tray with SetWindowLong
Date: Tue, 30 Dec 2003 14:18:06 +0100
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 217.1.178.75
Message-ID: <3ff17a91@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1072790161 217.1.178.75 (30 Dec 2003 05:16:01 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail