Read the documentation more carefully. Everything you are asking for is covered by it.
You are already using NIF_TIP
and NIF_MESSAGE
, which allow you to provide the popup text on mouse hover (#1), and tell the System Tray what window message to send back to your HWND when the user clicks on your icon (#2 and #3), respectively. That message contains all the information you need to know to differentiate between mouse hovering vs left/right mouse buttons vs spacebar key pressing.