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 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
Const SW_HIDE = 0
Const SW_NORMAL = 1
Dim hDeskTop As Long
Private Sub Command2_Click()
'下面三个用其一都可以
hDeskTop = FindWindow("progman", vbNullString)
hDeskTop = FindWindowEx(hDeskTop, 0, "shelldll_defview", vbNullString)
hDeskTop = FindWindowEx(hDeskTop, 0, "syslistview32", vbNullString)
ShowWindow hDeskTop, SW_HIDE
End Sub