|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
下面是将文件夹最小化的代码,现在求将文件夹恢复原来大小的代码。
#If Win64 Then
Declare PtrSafe Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As Any, ByVal lpWindowName As String) As Long
Declare PtrSafe Function CloseWindow Lib "user32" (ByVal hwnd As Long) As Long
#Else
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As Any, ByVal lpWindowName As String) As Long
Declare Function CloseWindow Lib "user32" (ByVal hwnd As Long) As Long
#End If
Sub 文件夹最小化()
Dim hndfd&, s&
hndfd = FindWindow("cabinetwclass", "新建文件夹")
s = CloseWindow(hndfd)
End Sub
|
|