开发者

Get all windows in taskbar

开发者 https://www.devze.com 2022-12-11 06:29 出处:网络
ive been googling for hours but cant find any way to get all windows in the taskbar. I need to minimize/maximize all windows, but with enumthreadwindows all system process-thread windows are being max

ive been googling for hours but cant find any way to get all windows in the taskbar. I need to minimize/maximize all windows, but with enumthreadwindows all system process-thread windows are being maximized/restored a开发者_运维技巧nd my pc crashes because of 1000 windows trying to maximize/restore...

can someone help?


The windows displayed in taskbar are equivalent to those that appear when you press ALT + Tab So you can check these links.

Enumerate windows like alt-tab does

Which windows appear in the Alt+Tab list?


you should try using EnumDesktopWindows() (documentation here). it will restrain the enumeration to top level windows which are part of the desktop.


IShellDispatch4.ToggleDesktop minimize/maximize all desktop windows

0

精彩评论

暂无评论...
验证码 换一张
取 消