C# Programming
08-05-2009, 02:00 AM
Hey all,
I using GetWindowRect with this struct
[StructLayout(LayoutKind.Sequential)]
public struct RECT
{
public int X;
public int Y;
public int Width;
public int Height;
}
However the sizes returned are not correct, any clue why?
1680 x 1050 returns 1686 x 1082
1280 x 1024 returns 1291 x 1061
1440 x 900 returns 1451 x 937
Only the last 2 have the same difference.
I using GetWindowRect with this struct
[StructLayout(LayoutKind.Sequential)]
public struct RECT
{
public int X;
public int Y;
public int Width;
public int Height;
}
However the sizes returned are not correct, any clue why?
1680 x 1050 returns 1686 x 1082
1280 x 1024 returns 1291 x 1061
1440 x 900 returns 1451 x 937
Only the last 2 have the same difference.