예제 #1
0
        void trueAdjust()
        {
            //If it is fullscreen, the title bar is larger
            WINDOWPLACEMENT placement = new WINDOWPLACEMENT();

            GetWindowPlacement(MCM.mcWinHandle, ref placement);
            if (placement.showCmd == SW_MAXIMIZE)
            {
                fullScOff = 8;
            }
            else
            {
                fullScOff = 0;
            }
            //Adust window position
            MCM.RECT mcRect = MCM.getMinecraftRect();
            x      = mcRect.Left + 9;
            y      = mcRect.Top + 34 + fullScOff;
            width  = mcRect.Right - mcRect.Left - 18;
            height = mcRect.Bottom - mcRect.Top - 43 - fullScOff;
            SetWindowPos(hWnd, MCM.isMinecraftFocusedInsert(), x, y, width, height, 0x0040);
        }