vc 怎么判断窗口是否最大化

vc 怎样判断窗口是否最大化
vc 怎样判断窗口是否最大化
------最佳解决方案--------------------
IsZoomed

The IsZoomed function determines whether a window is maximized. 

BOOL IsZoomed(
  HWND hWnd   // handle to window
);


Parameters
hWnd 
[in] Handle to the window to test.
 
Return Values
If the window is zoomed, the return value is nonzero.

If the window is not zoomed, the return value is zero.