IDE: Fixed initial mainbar height for Windows. Issue #32277

git-svn-id: branches/fixes_1_8@55689 -
This commit is contained in:
mattias 2017-08-19 08:40:37 +00:00
parent fc06fd7b1d
commit b648a18860

View File

@ -503,8 +503,8 @@ begin
Assert(Result >= 0, 'TMainIDEBar.CalcNonClientHeight: Result '+IntToStr(Result)+' is below zero.');
{$IFDEF LCLWin32}
//Win32 the constrained height has to be without SM_CYSIZEFRAME and SM_CYMENU
Result := Result - (LCLIntf.GetSystemMetrics(SM_CYSIZEFRAME) + LCLIntf.GetSystemMetrics(SM_CYMENU));
//Win32 the constrained height has to be without SM_CYSIZEFRAME and SM_CYCAPTION;
Result := Result - (LCLIntf.GetSystemMetrics(SM_CYSIZEFRAME) + LCLIntf.GetSystemMetrics(SM_CYCAPTION));
{$ENDIF LCLWin32}
{$ELSE}