Code: Select all
------------------------------------------------------------
- Object: NotifyIcon UserLibrary / SHELL_NOTIFYICON
-
- Descr: Set of functions for the Systray Icon
- From the 'shellapi.h' Microsoft include file
-
- Version: 1.0 Beta
- Date: Mars 2005
-
- Compil: Compiled with Purebasic 3.93
- Maded with TailBite 1.2 Beta 2.3
-
- Author: Philippe 'Flype' Carpentier
- Email: flype@altern.org
------------------------------------------------------------
------------------------------------------------------------
**** WARNING - PLEASE READ FOLLOWING NOTES ****
------------------------------------------------------------
The help file is UNDER CONSTRUCTION.
Please, refers to the purebasic example file provided
in the archive to understand how to use this UserLibrary.
This library extends the SysTray functions set of Purebasic.
But not only for Window95+. It allows to use new functionnalities
of Windows 2000, Windows XP, and the XP SP2 features.
------------------------------------------------------------
FUNCTIONS FOR THE NOTIFYICON API
------------------------------------------------------------
Result.l = ni_Add(uID.l, tip.s, hIcon.l)
Result.l = ni_Remove(uID.l)
Result.l = ni_Hide(uID.l)
Result.l = ni_Show(uID.l)
Result.l = ni_Focus(uID.l)
Result.l = ni_Icon(uID.l, hIcon.l)
------------------------------------------------------------
TOOLTIP AND BALLOON ( CARTOON STYLE ) FUNCTIONS
------------------------------------------------------------
Result.l = ni_Tip(uID.l, tip.s)
Result.l = ni_Info(uID.l, title.s, info.s, Flags.l)
------------------------------------------------------------
FUNCTIONS FOR LOADING ICONS OR USING EXISTING ONES
MAKING LIFE A LITTLE BIT EASIER...
------------------------------------------------------------
hIcon.l = ni_LoadIcon(IconFileName.s)
hIcon.l = ni_ExtractIcon()
hIcon.l = ni_DefaultIcon()
hIcon.l = ni_IconWinLogo()
hIcon.l = ni_IconQuestion()
hIcon.l = ni_IconHand()
hIcon.l = ni_IconExclamation()
hIcon.l = ni_IconAsterix()
hIcon.l = ni_IconApplication()
The source code is provided in the archive, making it easier to recompile with TailBite if needed.
Also, it could be a good tutorial on how to use the very new features of Windows 2000 to XP SP2.
Best Regards