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

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 shines 的 blog

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

 

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

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top