您可以在这里快速查找:


 
您的位置: 编程学习 > vb编程 > 200602
文章分类

Java技术
2005: 03 04 05 06 07 08
09 10 11 12
2006: 01 02

Asp.net
2005: 07 08 09 10 11 12
2006: 01 02

VB编程
2006: 02

Asp编程
2005: 11 12
2006: 01 02

C++/VC
2005: 10 11 12
2006: 01 02

Delphi
2005: 12
2006: 01 02

其它

 本文章适合所有读者

VB源代码推荐: 动态的显示/隐藏start按钮

shines

VB源代码推荐 : 动态的显示/隐藏start按钮

´ #VBIDEUtils#**********************************************
´ * Programmer Name  : Waty Thierry
´ * Web Site         : www.geocities.com/ResearchTriangle/6311/
´ * E-Mail           : waty.thierry@usa.net
´ * Date             : 22/10/98
´ * Time             : 15:50
´ * 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