How to check if window is minimized using win32 api?
use the IsIconic function.
Use IsIconic Windows API.
Try GetWindowLong and check the WS_MINIMIZE style :
LONG lStyles = GetWindowLong(GWL_STYLE); if( lStyles & WS_MINIMIZE ) ATLTRACE(_T("minimized")); else ATLTRACE(_T("not minimized"));
You can also request GWL_EXSTYLES