开发者

Get all windows in taskbar

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜