Discuz!NT
欢迎 游客 , 注册 | 登录 | 会员 | 界面 | 简洁版本 | 在线 | 帮助
商都网教育宝典宝库

发表新主题 回复该主题
本主题被查看538次, 共1个帖子, 1页, 当前为第1页     选择页数: 1      跳转到第   上一主题   下一主题
标题: VB源代码推荐:动态的显示/隐藏start按钮
-[尕硴]
超级版主
UID: 71
来自:
精华: 130
积分: 14003
帖子: 12909
注册: 2007-10-22 17:59:00
状态: 离线
威望: 444.00
金钱: 3355.00 元
只看楼主 2008-01-28 14:51
VB源代码推荐:动态的显示/隐藏start按钮
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
#1  
发表新主题 回复该主题
本主题被查看538次, 共1个帖子, 1页, 当前为第1页     选择页数: 1      跳转到第







现在的时间是 2008-10-11 06:07:25

版权所有 商都网教育宝典
         Powered by Discuz!NT 1.0.6666    Copyright © 2001-2008 Comsenz Inc.
Processed in 0 seconds