Window Class DATA bTaskBar ?
Posted: Mon Jan 28, 2008 2:39 am
Can any one enlighten me about the practical use of bTaskBar data in the Window Class please ?
www.FiveTechSoft.com
https://fivetechsoft.com/forums/
Code: Select all
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;