Win32: check if window is minimized

How to check if window is minimized using win32 api?

+4
source share
3 answers

use the IsIconic function.

+14
source

Use IsIconic Windows API.

+8
source

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

+7
source

All Articles