开发者

win32: check if window is minimized

开发者 https://www.devze.com 2023-01-27 07:02 出处:网络
How can 开发者_如何转开发one check whether a window is minimized using the win32 api?use the IsIconic function.Use the IsIconic Windows API.Try GetWindowLong and test for the WS_MINIMIZE style:

How can 开发者_如何转开发one check whether a window is minimized using the win32 api?


use the IsIconic function.


Use the IsIconic Windows API.


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

0

精彩评论

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