How do I get the minimized window of the RESTORED bounds?

It's easy to get a bounding box for all visible windows on the screen. It's also easy to tell if a particular window is iconic or not.

But for minimized windows, the top and left are shown as -32000 from User32.GetWindowInfo.rcWindow. I've looked all over the API and can't seem to find a call to return the bounds that the window would restore if it was clicked or switched to.

Thanks for any pointers.

+1


a source to share


2 answers


Check User32.GetWindowPlacement



+1


a source


For C / C ++:



WINDOWPLACEMENT wp;
::ZeroMemory(&wp, sizeof(WINDOWPLACEMENT));
::GetWindowPlacement(hWnd, &wp);

      

0


a source







All Articles