Applied patch #1023777 (Notebook initialisation).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2004-09-19 12:03:52 +00:00
parent b1f0abe45e
commit 52df30cf2d
2 changed files with 6 additions and 32 deletions

View File

@@ -158,7 +158,7 @@ WXDWORD wxNotebook::OS2GetStyle (
,pdwExstyle ,pdwExstyle
); );
dwTabStyle |= WS_TABSTOP | BKS_SOLIDBIND | BKS_ROUNDEDTABS | BKS_TABTEXTCENTER; dwTabStyle |= WS_TABSTOP | BKS_SOLIDBIND | BKS_ROUNDEDTABS | BKS_TABTEXTCENTER | BKS_TABBEDDIALOG;
if (lStyle & wxNB_BOTTOM) if (lStyle & wxNB_BOTTOM)
dwTabStyle |= BKS_MAJORTABBOTTOM | BKS_BACKPAGESBL; dwTabStyle |= BKS_MAJORTABBOTTOM | BKS_BACKPAGESBL;
@@ -346,22 +346,7 @@ void wxNotebook::SetPageSize (
const wxSize& rSize const wxSize& rSize
) )
{ {
RECTL vRect; SetSize(rSize);
//
// Transform the page size into the notebook size
//
vRect.xLeft = vRect.yTop = 0;
vRect.xRight = rSize.x;
vRect.yBottom = rSize.y;
//
// And now set it
//
SetSize( vRect.xRight - vRect.xLeft
,vRect.yBottom - vRect.yTop
);
} // end of wxNotebook::SetPageSize } // end of wxNotebook::SetPageSize
void wxNotebook::SetPadding ( void wxNotebook::SetPadding (
@@ -671,6 +656,9 @@ bool wxNotebook::InsertPage (
if (nSelNew != -1) if (nSelNew != -1)
SetSelection(nSelNew); SetSelection(nSelNew);
InvalidateBestSize();
return TRUE; return TRUE;
} // end of wxNotebook::InsertPage } // end of wxNotebook::InsertPage
@@ -681,20 +669,6 @@ void wxNotebook::OnSize(
wxSizeEvent& rEvent wxSizeEvent& rEvent
) )
{ {
int nPage;
int nCount = (int)m_pages.Count();
for (nPage = 0; nPage < nCount; nPage++)
{
if (m_nSelection == nPage)
m_pages[nPage]->Refresh();
else
::WinSetWindowPos(m_pages[nPage]->GetHWND()
,NULLHANDLE
,0,0,0,0
,SWP_HIDE
);
}
rEvent.Skip(); rEvent.Skip();
} // end of wxNotebook::OnSize } // end of wxNotebook::OnSize

View File

@@ -4360,7 +4360,7 @@ void wxWindowOS2::MoveChildren(
,vSwp.y - nDiff ,vSwp.y - nDiff
,vSwp.cx ,vSwp.cx
,vSwp.cy ,vSwp.cy
,SWP_MOVE | SWP_SHOW | SWP_ZORDER ,SWP_MOVE
); );
::WinQueryWindowPos(GetHwndOf(pWin), pWin->GetSwp()); ::WinQueryWindowPos(GetHwndOf(pWin), pWin->GetSwp());
if (pWin->IsKindOf(CLASSINFO(wxRadioBox))) if (pWin->IsKindOf(CLASSINFO(wxRadioBox)))