Hi, thats very weird..if I pass my RECT by reference notting wrong happens, bu if I pass by value, the numbers get crazy.
The correct values are:
{top=159 bottom=480 left=400 right=640}
What I get passing by value is:
{top=0 bottom=1 left=1964816 right=1058984360}
This happens at the first moment it enters the function( NO MODIFICATIONS ARE MADE ON THE RECT )..
Is this a 64 bit issue? Im on a x64 project..