Adding an icon to the taskbar using Shell_NotifyIcon
Posted on 2000-03-02
I'm tyring to add an icon to the taskbar with a menu and all.. I'm using VC++ 6 and created a dialog based project. everything seems fine, the icon appears and stays there when i move the mouse over it, however, i don't seem to be able to track it's callback function down, i created a const
#define MYWM_NOTIFYICON 1000
and was passing that as the callback, i also mapped it:
(were the other functions were mapped)
ON_NOTIFY(MYWM_NOTIFYICON, 1, OnClickDoTest)
and declared the OnClickDoTest functions with afx_msg like so:
afx_msg void CTestDlg::OnClickDoTest(WPARAM wParam, LPARAM lParam)
in the class protected section under the rest of it's kind...
however, no i receive no messages, any help? sample code would greatly help...
and also one more thing, if this succeeds, i would like to get rid of the button that windows puts in the taskbar for my dialog, how is that achievable?!
only giving 100 points, although i think it deserves more, but sorry i'm new here and only got 200 points.
Thanx in advance