Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
Is there anybody who can regist a event handler by using NotifyIcon::Change() method( Not by
NotifyIcon's new() constructor, but by Change() )?
I have tried several times, but I always fail to regist.
Clicking NotifyIcon, no event occurs.
Looking "GUI.pm", NotifyIcon::Change() calls NotifyIcon::Modify() of "NotifyIcon.xs".
At NotifyIcon::Modify(), there are lines like below:
nid.cbSize = sizeof(NOTIFYICONDATA);
nid.hWnd = parent;
ParseNotifyIconOptions(NOTXSCALL sp, mark, ax, items, 1, &nid);
I'm afraid some lines is short for NotifyIcon::Modify()?
Comparing with NotifyIcon::Add(), I guess these two lines are needed.
nid.uCallbackMessage = WM_NOTIFYICON;
SwitchBit(nid.uFlags, NIF_MESSAGE, 1);
Without these lines, nid.uCallbackMessage keeps zero, and a notice of messages on NotifyIcon
is suprresed forever.
I suspect no event occurs when we use NotifyIcon::Change().