Article View: borland.public.cppbuilder.nativeapi
Article #591Re: custom icons / images in system tray balloon tips
From: Mike Collins
Date: Sat, 01 Mar 2008 22:31
Date: Sat, 01 Mar 2008 22:31
16 lines
1503 bytes
1503 bytes
Please ignore last post - got it working in the end. The documentation is not as clear as it should be. If you specify NIIF_USER for the Info Flag, you must also specify NIF_INFO *AND* NIF_ICON for the standard flags i.e. nid.uFlags = NIF_INFO | NIF_ICON; nid.dwInfoFlags = NIIF_USER; HICON hIcon = (HICON)::LoadImage(HInstance, MAKEINTRESOURCE(101), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR); nid.hIcon = hIcon; bRtn = (bool)Shell_NotifyIcon(NIM_MODIFY, &nid); ::DestroyIcon(hIcon); Mike
Technical Details
Message-ID:
<47c9d6e2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<47c7e508@newsgroups.borland.com> <47c852f5$3@newsgroups.borland.com> <47c94ea5@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,477f3cd7b2ba5336 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Collins" <its@TheBottomOfThePost> Newsgroups: borland.public.cppbuilder.nativeapi References: <47c7e508@newsgroups.borland.com> <47c852f5$3@newsgroups.borland.com> <47c94ea5@newsgroups.borland.com> Subject: Re: custom icons / images in system tray balloon tips Date: Sat, 1 Mar 2008 22:31:12 -0000 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.3959 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4133 NNTP-Posting-Host: 78.150.202.61 Message-ID: <47c9d6e2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1204410082 78.150.202.61 (1 Mar 2008 14:21:22 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail