I have a program that diplays a popup menu when you right-click the tray icon. The menu works perfectly fine except that it if you activate the menu and dont click a menu item it will stay up.
Help pleaseCode:case WM_SHELLNOTIFY:
{
if(lParam == WM_RBUTTONDOWN)
{
GetCursorPos(&pt);
TrackPopupMenu(hPopupMenu,TPM_RIGHTALIGN,pt.x,pt.y,0,hwnd,0);
}
if(lParam == WM_LBUTTONDBLCLK)
{
SendMessage(hwnd,WM_COMMAND,SHOW,0);
}
}
break;
thanks
