日期:2014-05-17 浏览次数:21051 次
public static void SetTaskBar(uint istate)
{
IntPtr trayHwnd = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", null);
IntPtr hStar = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Button", null);
if (trayHwnd != IntPtr.Zero && hStar!=IntPtr.Zero)
{
ShowWindow(trayHwnd, istate);
ShowWindow(hStar, istate);
}
}