1、获取任务栏的窗口句柄
HWND hwnd1=::FindWindow("Shell_TrayWnd",NULL);//任务栏
2、获取系统托盘的窗口句柄
HWND hwnd2=::FindWindowEx(hwnd1,0,"TrayNotifyWnd",NULL);//托盘
3、获取时钟区的窗口句柄
HWND hwnd3=::FindWindowEx(hwnd2,0,"TrayClockWClass",NULL);//时钟区
4、获取中间的窗口句柄
HWND hwnd4=::FindWindowEx(hwnd1,0,"ReBarWindow32",NULL);//中间