Is there a function available to identify the WindowState ie whether it is Normal OR Minimized OR Maximized.
I would also like to know whether we can set the window state to Normal, Minimized or Maximized programatically.
In VB this can be achieved using the following code
If Me.WindowState = vbMaximized Then
  Me.WindowState = vbNormal
  Me.Height = "5000"
  Me.Width = "5000"
End IfTo bring the window back to normal mode I tried the following code, but the command is removing all the window control buttons from the title bar ie Minimize, Maximize & Close from the window and the same is shown on the MDI Main window
ShowWindow( oWnd:hWnd, SW_NORMAL Â )My intention is to restore the size and state of the window to its original size even if the user click on the maximize button on a MDICHILD window.
I tried the following code too, but did not work as expected
#define GWL_STYLE -16
SetWindowLong(oWnd:hWnd, GWL_STYLE, nOr( GetWindowLong(oWnd:hWnd, GWL_STYLE), WS_MAXIMIZEBOX ))Thanks
Regards
Anser