Toolbar updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2592,6 +2592,8 @@ MRESULT wxWindowOS2::OS2WindowProc(
|
||||
{
|
||||
if (pFrame->GetStatusBar())
|
||||
pFrame->PositionStatusBar();
|
||||
if (pFrame->GetToolBar())
|
||||
pFrame->PositionToolBar();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4364,7 +4366,19 @@ int wxWindowOS2::GetOS2ParentHeight(
|
||||
IsKindOf(CLASSINFO(wxMenuBar)) ||
|
||||
IsKindOf(CLASSINFO(wxToolBar))
|
||||
)
|
||||
return(pParent->GetSize().y);
|
||||
{
|
||||
if (IsKindOf(CLASSINFO(wxToolBar)))
|
||||
{
|
||||
wxFrame* pFrame = wxDynamicCast(GetParent(), wxFrame);
|
||||
|
||||
if (pFrame->GetToolBar() == this)
|
||||
return(pParent->GetSize().y);
|
||||
else
|
||||
return(pParent->GetClientSize().y);
|
||||
}
|
||||
else
|
||||
return(pParent->GetSize().y);
|
||||
}
|
||||
else
|
||||
return(pParent->GetClientSize().y);
|
||||
}
|
||||
|
Reference in New Issue
Block a user