问题
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