Exemplo n.º 1
0
        private void GetScreenWidthHeight()
        {
            InteropCommon.GetWindowRect(LauncherForm.g_handlePathOfExile, out rcPOE);
            InteropCommon.GetClientRect(LauncherForm.g_handlePathOfExile, out rcClient);
            InteropCommon.ClientToScreen(LauncherForm.g_handlePathOfExile, ref ptLeftTop);

            Width  = rcPOE.right / 2;
            Height = rcPOE.bottom;
        }