🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Missing Tray Icon

#6579
From: Vladimir Stefanovic
Date: Mon, 02 May 2005 19:15
29 lines
1819 bytes
>>    UINT WM_TASKBARRECREATED;
>
> You should not use capitals like that in variable names.  Use something 
> more
> like this instead:
>
>    UINT uTaskbarCreatedMSg;

Ok! Now I changed that...

>>       WM_TASKBARRECREATED = RegisterWindowMessage( "TaskbarCreated" );
>
>    uTaskbarCreatedMsg = RegisterWindowMessage("TaskbarCreated");
>
>>       if ( ( Msg.Msg != 0 ) && ( Msg.Msg == WM_TASKBARRECREATED ) )
>
> That should be the following instead.  You are not checking the return 
> value
> of RegisterWindowMessage() for 0 properly:
>
>    if( (uTaskbarCreatedMsg != 0) && (Msg.Msg == uTaskbarCreatedMsg) )

Oh, I overlooked that. Thanks for looking sharp...



-- 
Best regards,
Vladimir Stefanovic 
Technical Details
Message-ID: <42767c5f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <427522d4@newsgroups.borland.com> <4275d933$1@newsgroups.borland.com> <42766edf@newsgroups.borland.com> <42767966$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7ad711a9c0d3d8ff
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <427522d4@newsgroups.borland.com> <4275d933$1@newsgroups.borland.com> <42766edf@newsgroups.borland.com> <42767966$1@newsgroups.borland.com>
Subject: Re: Missing Tray Icon
Date: Mon, 2 May 2005 21:15:49 +0200
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 82.117.212.65
Message-ID: <42767c5f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1115061343 82.117.212.65 (2 May 2005 12:15:43 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail