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

  • 相关阅读:
    Leetcode95. Unique Binary Search Trees II不同的二叉搜索树2
    Leetcode134. Gas Station加油站
    Leetcode152. Maximum Product Subarray乘积的最大子序列
    C#扩展方法
    Lua语言入门
    Docker命令
    SpringBoot-配置文件属性注入-3种方式
    从零开始学Linux系统(五)用户管理和权限管理
    MyCat学习笔记
    kafka-zk-安装测试初体验
  • 原文地址:https://www.cnblogs.com/cwfsoft/p/1764200.html
Copyright © 2011-2022 走看看