Click here to Skip to main content
16,019,043 members

Comments by Member 7730841 (Top 1 by date)

Member 7730841 3-Jul-21 12:17pm View    
I also got the rectangle corrected.
In case this helps anyone, this works...

rect = GetClientRect(handle_get);
long result = GetWindowRect(handle_get, ref rect);
if (result > 0)
{
Console.WriteLine("Handle does have a rectangle");
}
else { Console.WriteLine("Rectangle is truly empty"); }

Apparently, this is useless...
GetClientRect(handle_get, out handle_getRect);
Or perhaps I haven't worked out how to use it correctly.