Запустите этот код в Win98 - TaskBar останется прежним.
- Код: Выделить всё
Option Explicit
Private Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function CreateRectRgn Lib "gdi32.dll" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Private Declare Function SetWindowRgn Lib "user32.dll" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
Dim hTaskBar As Long
Private Sub Form_DblClick()
Unload Me
End Sub
Private Sub Form_Load()
Dim hRect As Long
hTaskBar = FindWindow("Shell_TrayWnd", vbNullString)
hRect = CreateRectRgn(0, 0, 500, 15)
Call SetWindowRgn(hTaskBar, hRect, True)
Debug.Print hTaskBar
End Sub
Private Sub Form_Unload(Cancel As Integer)
Call SetWindowRgn(hTaskBar, 0, True)
End Sub
Хм, как это обойти?