[Visual Basic] VB Source Code Recommended: Dynamic DisplayHide START Button

zhaozj2021-02-08  402

VB Source Code Recommended: Dynamic Display / Hide START Button

'#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 Longprivate Declare Function ShowWindow Lib "User32" _ (BYVAL HWND As Long) AS Longpublic Function HideStartButton () 'This function hides the start button OurParent & = FindWindow ( "Shell_TrayWnd", "") OurHandle & = FindWindowEx (OurParent &, 0, "Button", _ vbNullString) ShowWindow OurHandle &, 0End FunctionPublic Function showStartButton () 'This Function Shows the Start Button' OurParent & = FindWindow ( "Shell_TrayWnd" , "" "OURHANDLE & = FindWindowEx (Ourparent &, 0," Button ", _ vbnullstring ShowWindow Ourhandle &, 5end Function

转载请注明原文地址:https://www.9cbs.com/read-748.html

New Post(0)