HI,
below is a piece of code.
HWND hVWnd;
RECT rRect;
GetWindowRect(hVWnd,&rRect);
diff_val = rRect.bottom-rRect.top;
If on starting a application if my window is minimized then value of rRect.top and
rRect.bottom is -32000.
Is it a garbage value or any valid error code
Once my window get normal size it gives me a valid wondow cordinates. (such as 405, 395 ..)
my question is,
when a window is minimize then GetwindowRect's top propery is always -32000.
or it could be any other garbage value.
Waiting for your reply
Many thanks

GetWindowRect Function
Martin_TeroSolutions
or its value may change if we change OS or upgrade with new service pack.
cherriesh
If it were for me, I woudn't depend on the exact number.
Thanks,
Ayman Shoukry
VC++ Team.
gswitz
It could be a windows criteria where minimized windows are put into coordinates (-32000,-32000).
I did a quick search and here is a blog that explained such issue:
http://blogs.msdn.com/oldnewthing/archive/2004/10/28/249044.aspx
Hope this helps!
Thanks,
Ayman Shoukry
VC++ Team
Madhukar Bhalerao
Thank for guiding me.
kdlady1974