还需要带上 lParam 参数才行。我在 AutoHotkey 论坛找到了个函数,测试成功。- RefreshTray()
-
- RefreshTray(){ ; http://www.autohotkey.com/board/topic/33849-refreshtray/
- ControlGetPos,,,w,h,ToolbarWindow321, AHK_class Shell_TrayWnd
- width:=w, hight:=h
- While % ((h:=h-5)>0 and w:=width){
- While % ((w:=w-5)>0){
- PostMessage, 0x200,0,% ((hight-h) >> 16)+width-w,ToolbarWindow321, AHK_class Shell_TrayWnd
- }
- }
- }
复制代码 下载 RefreshTray.zip: http://pan.baidu.com/s/1mgiiCVe |