The IsZoomed function determines whether a window is maximized.
BOOL IsZoomed(
HWND hWnd
// handle of window
);
If the window is zoomed, the return value is nonzero.
If the window is not zoomed, the return value is zero.
IsIconic