/*显示隐藏任务栏*/
public static Boolean ShowTaskBar(Boolean isShow)
{
try
{
//全屏显示
IntPtr hWnd = PAMS2CE.UTIL.Win32Util.FindWindow("HHTaskBar", null);
if (hWnd != IntPtr.Zero)
{
const int SW_SHOW = 5; //显示窗口常量
const int SW_HIDE = 0; //隐藏窗口常量
if (isShow)
{
PAMS2CE.UTIL.Win32Util.ShowWindow(hWnd, SW_SHOW);
}
else
{
PAMS2CE.UTIL.Win32Util.ShowWindow(hWnd, SW_HIDE);
}
}
PAMS2CE.UTIL.Win32Util.SystemParametersInfo(47, 0, 0, 0x0002);
PAMS2CE.UTIL.Win32Util.ShowCursor(isShow);
return true;
}
catch (Exception ex)
{
Log.E("MainForm", ex.Message.ToString());
return false;
}
}