wince 隐藏任务栏

前端之家收集整理的这篇文章主要介绍了wince 隐藏任务栏前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_404_0@Imports System.Runtime.InteropServices

@H_404_0@<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

@H_404_0@ Const SW_HIDE = 0
Const SW_SHOWNORMAL = 1

@H_404_0@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

原文链接:https://www.f2er.com/vb/260808.html

猜你在找的VB相关文章