Wiki Home

Win 32 Api Shell Notify Icon


Namespace: VFP
Question: Is there an API call to add an icon to the systray? -- BarryDempsey

Yes (Shell_NotifyIcon in Shel32.Dll). Check Q149276 Offsite link to http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q149276 (HOWTO: Use Icons with the Windows 95/Windows 98 System Tray) (and article Q162613 Offsite link to http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q162613 HOWTO: Manipulate Icons in the System Tray with Visual Basic) in MSDN Libray. If you like the windows API take a look at Politically Correct File Operations also in MSDN (SHFile OperationOffsite link to http://www.news2news.com/vfp/?function=494
), but unfortunatelly it requires a structure as parameter. -- Fernando Alvares
See: Api Structures
Also, check out the knowledgebase article ID: Q177095 Offsite link to http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q177095 SAMPLE: SYSTRAY.EXE ActiveX Control Adds Icons to Status Area
I believe this is the way to go since VFP does not support callback functions. - William Fields
http://support.microsoft.com/default.aspx?scid=kb;en-us;177095


Category Windows API
( Topic last updated: 2015.03.24 09:14:06 AM )