case WM_TASKBAR:
switch(lParam)
{
case WM_LBUTTONDBLCLK:
systray_del(hwnd,IDI_ICON1);
ShowWindow(hwnd, SW_RESTORE);
SetForegroundWindow(hwnd);
break;
case WM_RBUTTONUP:
hmenu = LoadMenu(g_hInst, MAKEINTRESOURCE(IDR_SYSTRAY));
hmenu = GetSubMenu(hmenu,0);
GetCursorPos(&p);
SetForegroundWindow(hwnd);
TrackPopupMenu(hmenu,TPM_LEFTALIGN|TPM_LEFTBUTTON|TPM_RIGHTBUTTON,p.x,p.y,0,hwnd,NULL);
break;
}
return 0;
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot], Surasak and 22 guests