OS/2 bug fixes and new mod file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -248,6 +248,26 @@ wxStatusBar* wxFrame::OnCreateStatusBar(
|
||||
if( !pStatusBar )
|
||||
return NULL;
|
||||
|
||||
wxClientDC vDC(pStatusBar);
|
||||
int nY;
|
||||
|
||||
//
|
||||
// Set the height according to the font and the border size
|
||||
//
|
||||
vDC.SetFont(pStatusBar->GetFont()); // Screws up the menues for some reason
|
||||
vDC.GetTextExtent( "X"
|
||||
,NULL
|
||||
,&nY
|
||||
);
|
||||
|
||||
int nHeight = ((11 * nY) / 10 + 2 * pStatusBar->GetBorderY());
|
||||
|
||||
pStatusBar->SetSize( -1
|
||||
,-1
|
||||
,-1
|
||||
,nHeight
|
||||
);
|
||||
|
||||
::WinSetParent( pStatusBar->GetHWND()
|
||||
,m_hFrame
|
||||
,FALSE
|
||||
|
Reference in New Issue
Block a user