wince 隐藏任务栏

wince 隐藏任务栏,第1张

概述Imports System.Runtime.InteropServices <DllImport("coredll.dll")> _     Friend Shared Function IsWindowVisible(ByVal hwnd As Integer) As Boolean     End Function  <DllImport("coredll.dll")> _     Frie

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

总结

以上是内存溢出为你收集整理的wince 隐藏任务栏全部内容,希望文章能够帮你解决wince 隐藏任务栏所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/1290713.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-09
下一篇2022-06-09

发表评论

登录后才能评论

评论列表(0条)

    保存