🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Multiple Shell_NotifyIcon calls

#670
From: Kris
Date: Wed, 20 Feb 2008 19:40
24 lines
1979 bytes
Remy Lebeau (TeamB) wrote:
> The first notify is completely finished before Shell_NotifyIcon() exits.
> 

Thanks for your response. However, as indicated in my previous posting 
it turned out I was constantly using NIM_ADD instead of using NIM_MODIFY 
when the icon was created.

I do have another question though. My app is loaded during windows 
startup in the system tray (and does not show its main window). Most of 
the time this works just fine, but occasionally the app gets loaded but 
no system tray icon is created. It's hard to reproduce, but it does 
happen from time to time.

Does anyone know why this is happening? As a work-around I was thinking 
about adding a retry mechanism for Shell_NotifyIcon(NIM_ADD) until the 
call eventually returns successfully.

I'm not sure this work around will be sufficient since I don't know the 
real cause of the problem.

Any suggestions are much appreciated,

Kris
Technical Details
Message-ID: <47bc8219$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!feeder1.cambrium.nl!feed.tweaknews.nl!193.141.40.68.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng2.kpn.DE!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <47B85E8F.6040508@ks.com> <47bb1415$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fd4854ec85a82474
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 20 Feb 2008 20:40:16 +0100
From: Kris <ks@ks.com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Multiple Shell_NotifyIcon calls
References: <47B85E8F.6040508@ks.com> <47bb1415$1@newsgroups.borland.com>
In-Reply-To: <47bb1415$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 83.101.31.64
Message-ID: <47bc8219$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1203536409 83.101.31.64 (20 Feb 2008 11:40:09 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!feeder1.cambrium.nl!feed.tweaknews.nl!193.141.40.68.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng2.kpn.DE!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail