完全删除SIP [英] Remove SIP Compleatly

查看:123
本文介绍了完全删除SIP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[DllImport("AYGShell.dll")]
    static extern Int32 SHFullScreen(IntPtr hwndRequester, UInt32 dwState);

    public const UInt32 SHFS_SHOWSIPBUTTON = 0x0004;
    public const UInt32 SHFS_HIDESIPBUTTON = 0x0008;

    public Form1()
    {
        InitializeComponent();
    }

    private void OnPaint(object sender, PaintEventArgs e)
    {
        HideSipButton();
    }

    private void HideSipButton()
    {
        UInt32 dwState = SHFS_HIDESIPBUTTON;//: SHFS_SHOWSIPBUTTON;
        SHFullScreen(this.Handle, dwState);
    }

HI,上面的代码在windowsmobile中首次启动表单时工作正常,它隐藏了windows mobile中窗体的sip按钮,但是如果我点击菜单栏上的sip-button重新出现..我不知道怎么完全消除sip按钮..请帮我解决这个问题..

above code works fine in the first launch of a form in windowsmobile, it hides the sip button of a form in windows mobile, but if i click on the menu bar sip-button reappears.. i dont no how to eliminate the sip button completely.. please help me how to fix this..

我不想要sip按钮在windowsmobile中的一个表单...我正在使用.net CF

i ment i dont want sip button at all for a form in windowsmobile.. i am using .net CF

推荐答案

嗨Grabit!
Hi Grabit!

I don't know how to disable the button completely. In my app I am hiding it in events such as OnResize, OnGotFocus, but that was not enough. I've created a background thread that is hiding the SIP button each second if necessary.


这篇关于完全删除SIP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆