detect all windows minimized from c# application

[亡魂溺海] 提交于 2019-12-07 18:21:10

问题


how to detect all windows(of other applications) minimized from c# application


回答1:


Use example from here http://pinvoke.net/default.aspx/user32.EnumDesktopWindows then just check window state




回答2:


If you want to monitor what's going on in the system, then you want to set up a CBT Hook. That will keep you notified when windows are created, destroyed, minimized, maximized, moved, activated, etc etc.




回答3:


For Windows Forms you can look at the property WindowState on the Form object. Minimized windows will have a state of FormWindowState.Minimized.




回答4:


Use GetWindowState() WinAPI function



来源:https://stackoverflow.com/questions/2006027/detect-all-windows-minimized-from-c-sharp-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!