Amed » 05.12.2003 (Пт) 16:57
Option Explicit
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Const SW_HIDE = 0
Private Const SW_SHOW = 5
Private TrayBarHwnd As Long
Private Sub Form_Load()
TrayBarHwnd = FindWindow("Shell_TrayWnd", vbNullString)
ShowWindow TrayBarHwnd, SW_HIDE
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
ShowWindow TrayBarHwnd, SW_SHOW
End Sub