How to know mouse has left the Tray Icon
-
Hello Friends !!!! Can anybody tell me how to know that the mouse has left the Tray Icon. I mean which message is sent when mouse leave the Tray Icon.. I am devloping the application in which I am showing context menu when someone do the Right mouse click on the Tray Icon and the showing dialog box when mouse is over the Tray Icon. I want to hide the dialog when mouse leaves the Tray Icon and also want. But dont know how to do it. If anydody knows or have any Idea please tell me.
[ Screen Capture ][ Tool Tip ]
-
Hello Friends !!!! Can anybody tell me how to know that the mouse has left the Tray Icon. I mean which message is sent when mouse leave the Tray Icon.. I am devloping the application in which I am showing context menu when someone do the Right mouse click on the Tray Icon and the showing dialog box when mouse is over the Tray Icon. I want to hide the dialog when mouse leaves the Tray Icon and also want. But dont know how to do it. If anydody knows or have any Idea please tell me.
[ Screen Capture ][ Tool Tip ]
GauranG33 wrote:
I want to hide the dialog when mouse leaves the Tray Icon...
How are you detecting that the mouse has entered the taskbar notification area?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
GauranG33 wrote:
I want to hide the dialog when mouse leaves the Tray Icon...
How are you detecting that the mouse has entered the taskbar notification area?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
Follwing is the Code I am using to know whether the mouse is on the Tray Icon or not. If its on the Tray Icon I am showing the Dialog Box. But I want to Hide it when It leave the Tray Icon.
void PutInTaskBar(HWND hWnd)
{
...
...
nfd.uCallbackMessage = WM_TASKMSG; //user Message
Shell_NotifyIcon(NIM_ADD,&nfd);}
LRESULT CALLBACK MyDialogProc( ... )
{
switch(message)
{case WM\_TASKMSG: if(lParam == WM\_MOUSEMOVE) { // Mouse is on the System Tray Icon ShowWindow(hWndDlg,TRUE); } }
}
[ Screen Capture ][ Tool Tip ]