🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Using the systray in services

#4370
From: Boba
Date: Thu, 23 Feb 2006 16:35
20 lines
1671 bytes
"Bogdan" <boprea@xnet.ro> wrote in message
news:43f70392@newsgroups.borland.com...
> How can I process systray messages in a windows service?I need to
display
> an icon in the systray when the service is running, and remove it when
it's
> stopped, but the systray requires a handle to window where to send
messages
> when the icon is clicked or needs to be redrawn, and a service doesn't
have
> one.
>
> Bogdan.
>
Most of my services create a hidden window for that.
Many of them provide User Interface for faster communication
(instead of loading administrative tools).  The systray icon
sends messages within the 0x0200-0x2009 range. I also provide
an option of dispaying this icon through the service cpl
config tool.                                        Boba
Technical Details
Message-ID: <43fdc6d4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43f70392@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ee340e11c1cfabb3
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Boba" <Boba@somewhere.world>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <43f70392@newsgroups.borland.com>
Subject: Re: Using the systray in services
Date: Thu, 23 Feb 2006 08:35:05 -0800
Lines: 22
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: 24.238.236.69
Message-ID: <43fdc6d4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1140704980 24.238.236.69 (23 Feb 2006 06:29:40 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail