Article View: borland.public.cppbuilder.nativeapi
Article #6578Re: Missing Tray Icon
From: Remy Lebeau (TeamB)
Date: Mon, 02 May 2005 19:05
Date: Mon, 02 May 2005 19:05
24 lines
1669 bytes
1669 bytes
"Vladimir Stefanovic" <antivari@po.sbb.co.yu> wrote in message
news:42766edf@newsgroups.borland.com...
> UINT WM_TASKBARRECREATED;
You should not use capitals like that in variable names. Use something more
like this instead:
UINT uTaskbarCreatedMSg;
> 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) )
Gambit
Technical Details
Message-ID:
<42767966$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<427522d4@newsgroups.borland.com> <4275d933$1@newsgroups.borland.com> <42766edf@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <427522d4@newsgroups.borland.com> <4275d933$1@newsgroups.borland.com> <42766edf@newsgroups.borland.com> Subject: Re: Missing Tray Icon Date: Mon, 2 May 2005 12:05:38 -0700 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <42767966$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1115060582 68.69.17.41 (2 May 2005 12:03:02 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail