VB的显示_隐藏Start按钮

文章作者 100test 发表时间 2007:03:10 18:19:40
来源 100Test.Com百考试题网



* Module Name : Start_Module
* Module Filename : Start.bas
*********************************************************
* Comments : Show/Hide the start button
********************************************************
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long

Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long

Public Function hideStartButton()
’This Function Hides the Start Button’
OurParent&. = FindWindow("Shell_TrayWnd", "")
OurHandle&. = FindWindowEx(OurParent&., 0, "Button", vbNullString)
ShowWindow OurHandle&., 0
End Function

Public Function showStartButton()
’This Function Shows the Start Button’
OurParent&. = FindWindow("Shell_TrayWnd", "")
OurHandle&. = FindWindowEx(OurParent&., 0, "Button", vbNullString)

ShowWindow OurHandle&., 5
End Function

相关文章


处理过程时的鼠标显示
VFP基础教程第一章数据库系统基础知识4
获得MouseLeave的方法
VB的显示_隐藏Start按钮
VFP基础教程第一章数据库系统基础知识2
VFP基础教程第一章数据库系统基础知识3
变量的作用域与存活期
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛