Currently viewing: GipsySoft » Front Page» Articles


Determine whether a window is totally visible, partially visible or not at all visible.
This does not use the WS_VISIBLE style to determine whether a window is visible or not.

int IsWindowVisibleEx( HWND hwnd );

Return value
0Not visible at all
1Totally visible
-1Partially visible



switch( IsWindowVisibleEx( hwnd ) )
case 0:  TRACE("NOT Visible\n");       break;
case 1:  TRACE("TOTALLY Visible\n");   break;
case -1: TRACE("PARTIALLY Visible\n"); break;
if( IsWindowVisibleEx( hwnd ) )
	//	Do something.


Click to view the source code

See also none