Fix a regression of hidden status bar due to the enhancement of tab interface
This commit is contained in:
parent
a482cbd215
commit
9faa97a6f9
@ -241,21 +241,19 @@ void TabBar::reSizeTo(RECT & rc2Ajust)
|
||||
}
|
||||
else //if (_isMultiLine)
|
||||
{
|
||||
LONG_PTR style = ::GetWindowLongPtr(_hSelf, GWL_STYLE);
|
||||
int marge = 0;
|
||||
if (rowCount == 1)
|
||||
{
|
||||
LONG_PTR style = ::GetWindowLongPtr(_hSelf, GWL_STYLE);
|
||||
style &= ~TCS_BUTTONS;
|
||||
::SetWindowLongPtr(_hSelf, GWL_STYLE, style);
|
||||
|
||||
TabCtrl_AdjustRect(_hSelf, FALSE, &rc2Ajust);
|
||||
}
|
||||
else // (rowCount >= 2)
|
||||
{
|
||||
LONG_PTR style = ::GetWindowLongPtr(_hSelf, GWL_STYLE);
|
||||
style |= TCS_BUTTONS;
|
||||
::SetWindowLongPtr(_hSelf, GWL_STYLE, style);
|
||||
marge = 3; // in TCS_BUTTONS mode, each row has few pixels higher
|
||||
}
|
||||
|
||||
const int marge = 3; // in TCS_BUTTONS mode, each row has few pixels higher
|
||||
::SetWindowLongPtr(_hSelf, GWL_STYLE, style);
|
||||
tabsHight = rowCount * (rowRect.bottom - rowRect.top + marge);
|
||||
tabsHight += GetSystemMetrics(SM_CYEDGE);
|
||||
|
||||
@ -263,7 +261,6 @@ void TabBar::reSizeTo(RECT & rc2Ajust)
|
||||
rc2Ajust.bottom -= tabsHight;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void TabBarPlus::destroy()
|
||||
|
Loading…
Reference in New Issue
Block a user