wince 隐藏状态栏

来源:互联网 发布:淘宝自定义页面优惠券 编辑:程序博客网 时间:2024/06/11 12:10

     [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);

如wince系统下
            int hTaskBarWnd = FindWindow("HHTaskBar", null);

            ShowWindow(hTaskBarWnd, 0);//隐藏Wince系统底部状态栏
            ShowWindow(hTaskBarWnd, 1);//恢复显示Wince系统底部状态栏