zoukankan      html  css  js  c++  java
  • C#语言实现WINCE全屏幕显示

    Windows CE .NET Operating System

    • How do I hide the Start icon?

      The Start icon can be hidden using the SHFullScreen API.

      [C#]

      const uint SHFS_SHOWTASKBAR = 0x0001;

      const uint SHFS_HIDETASKBAR = 0x0002;

      const uint SHFS_SHOWSIPBUTTON = 0x0004;

      const uint SHFS_HIDESIPBUTTON = 0x0008;

      const uint SHFS_SHOWSTARTICON = 0x0010;

      const uint SHFS_HIDESTARTICON = 0x0020;

      [DllImport("aygshell.dll")]

      static extern uint SHFullScreen(IntPtr hwndRequester, uint dwState);

      [DllImport("coredll.dll")]

      public static extern IntPtr GetCapture();

      private void Form1_Load(object sender, System.EventArgs e)

      {

          Capture = true;

          IntPtr hwnd = GetCapture();

          Capture = false;

          SHFullScreen(hwnd, SHFS_HIDESTARTICON);

      }

      [VB]

      Const SHFS_SHOWTASKBAR As Integer = &H1

      Const SHFS_HIDETASKBAR As Integer = &H2

      Const SHFS_SHOWSIPBUTTON As Integer = &H4

      Const SHFS_HIDESIPBUTTON As Integer = &H8

      Const SHFS_SHOWSTARTICON As Integer = &H10

      Const SHFS_HIDESTARTICON As Integer = &H20

      <DllImport("aygshell.dll")> _

      Shared Function SHFullScreen(ByVal hwndRequester As IntPtr, _

        ByVal dwState As Integer) As Integer

      End Function

      <DllImport("coredll.dll")> _

      Public Shared Function GetCapture() As IntPtr

      End Function

      Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)

         Capture = True

         Dim hwnd As IntPtr = GetCapture()

         Capture = False

         SHFullScreen(hwnd, SHFS_HIDESTARTICON)

      End Sub 'Form1_Load

    使用后发现不管用,不知道什么原因 wince5.0,vs2005

  • 相关阅读:
    Mysql索引类型
    Linux 查看进程
    Element is not clickable at point error in chrome
    org.apache.commons.lang.StringUtils 中 Join 函数
    接口测试之webservice介绍
    Java 中正确使用 hashCode 和 equals 方法
    HTTP协议基础
    使用Groovy处理SoapUI中Json response
    SoapUI中读取法文字符
    SoapUI中XML解析
  • 原文地址:https://www.cnblogs.com/cwfsoft/p/1764200.html
Copyright © 2011-2022 走看看