SendMessage WM_SIZE, SIZE_MAXIMIZED
I wish to maximize a window. I know the handle. The code for scrolling looks something like this::
I would like the code for Maximizing a window. I have searched this forum and outside. I cannot find the code in one place.
Also if someone knows how to check for isZoomed, it would be a good way to test if it worked.
Kevin what type of window is it GUI, Browser etc. and is the Window "maximisable"
Found this on my USB stick Kevin, not at my QTP machine at the moment so I can't test it:
Const SW_SHOWMAXIMIZED = 3
Extern.Declare micLong, "ShowWindow", "user32.dll", "ShowWindow", micHwnd, micLong
Extern.ShowWindow hWnd, SW_SHOWMAXIMIZED
I just used a simple SendKeys of alt + space + x when I needed to do this.
I use below:
Kevin, has any of the above worked?
We went with ShowWindow and it has been working.