win32: check if window is minimized

邮差的信 提交于 2019-12-10 13:48:58

问题


How can one check whether a window is minimized using the win32 api?


回答1:


use the IsIconic function.




回答2:


Use the IsIconic Windows API.




回答3:


Try GetWindowLong and test for the WS_MINIMIZE style:

LONG lStyles = GetWindowLong(GWL_STYLE);

if( lStyles & WS_MINIMIZE )
    ATLTRACE(_T("minimized"));
else
    ATLTRACE(_T("not minimized"));

You can also query for GWL_EXSTYLES



来源:https://stackoverflow.com/questions/4309282/win32-check-if-window-is-minimized

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