Balloon on system tray
-
I have a class allowing us to display a balloon but it requires an exact position or a handle of a ctr. But when I create an icon on system tray, I don't know how to get the position of the icon on system tray & with the handle of the icon I can't display the balloon exactly. So plz help me
-
I have a class allowing us to display a balloon but it requires an exact position or a handle of a ctr. But when I create an icon on system tray, I don't know how to get the position of the icon on system tray & with the handle of the icon I can't display the balloon exactly. So plz help me
Finding the position and dimensions of the Windows system tray[^]
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
I have a class allowing us to display a balloon but it requires an exact position or a handle of a ctr. But when I create an icon on system tray, I don't know how to get the position of the icon on system tray & with the handle of the icon I can't display the balloon exactly. So plz help me
You don't need to know the position of the icon - let the system do the work for you. You can use ShellNotifyIcon to show a popup balloon for you. Lookup the docs for the structure NOTIFYICONDATA, and look at NIF_INFO. I'm pretty sure there's an article or two here on the subject. Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
-
You don't need to know the position of the icon - let the system do the work for you. You can use ShellNotifyIcon to show a popup balloon for you. Lookup the docs for the structure NOTIFYICONDATA, and look at NIF_INFO. I'm pretty sure there's an article or two here on the subject. Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
-
I've seen NOTIFYICONDATA & NIF_INFO but that balloon just appears when we start our application. I'd like to make it appear whenever we want (click on a button for example)... Help me again plz :sigh:
-
I've seen NOTIFYICONDATA & NIF_INFO but that balloon just appears when we start our application. I'd like to make it appear whenever we want (click on a button for example)... Help me again plz :sigh:
Stored the NOTIFYICONDATA struct for later use (not essential, but makes life easy), tweak the NIF_INFO bits, and use Shell_NotifyIcon(NIM_MODIFY, ...) to do this later on... Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.