加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

wince 隐藏任务栏

发布时间:2020-12-16 22:46:55 所属栏目:大数据 来源:网络整理
导读:Imports System.Runtime.InteropServices DllImport("coredll.dll") _ Friend Shared Function IsWindowVisible(ByVal hwnd As Integer) As Boolean End Function DllImport("coredll.dll") _ Friend Shared Function FindWindow(ByVal lpClassName As Strin

Imports System.Runtime.InteropServices

<DllImport("coredll.dll")> _
Friend Shared Function IsWindowVisible(ByVal hwnd As Integer) As Boolean
End Function
<DllImport("coredll.dll")> _
Friend Shared Function FindWindow(ByVal lpClassName As String,ByVal lpWindowName As String) As Integer
End Function
<DllImport("coredll.dll")> _
Friend Shared Function EnableWindow(ByVal hwnd As Integer,ByVal fEnable As Integer) As Integer
End Function
<DllImport("coredll.dll")> _
Friend Shared Function ShowWindow(ByVal hwnd As Integer,ByVal nCmdShow As Integer) As Integer
End Function

Const SW_HIDE = 0
Const SW_SHOWNORMAL = 1

Private Sub btnHide_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles btnHide.Click '屏蔽系统任务栏 Dim htask As IntPtr = FindWindow("HHTaskBar",Nothing) If Not IsWindowVisible(htask) Then ShowWindow(htask,SW_SHOWNORMAL) Else EnableWindow(htask,False) ShowWindow(htask,SW_HIDE) End If End Sub

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读