|
这是一个显示隐藏任务栏的例子,希望对你有帮助
[DllImport("coredll.dll")]
private static extern int FindWindow(string lpClassName, string lpWindowName);
[DllImport("coredll.dll")]
internal extern static int EnableWindow(int hwnd, int fEnable);
[DllImport("coredll.dll")]
public static extern int ShowWindow(int hwnd, int nCmdShow);
int hTaskBarWnd;
hTaskBarWnd = FindWindow("HHTaskBar", null);
ShowWindow(hTaskBarWnd, 0);//隐藏
ShowWindow(hTaskBarWnd, 1);//显示 |
|