Changed to use new wxWindow->Reparent call to allow build with current cvs
Added several small fixes from Scott Pleiter git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -331,6 +331,7 @@ bool wxFrameLayout::CanReparent()
|
||||
void wxFrameLayout::ReparentWindow( wxWindow* pChild, wxWindow* pNewParent )
|
||||
{
|
||||
#ifdef __WXMSW__
|
||||
#if 0
|
||||
|
||||
if ( pChild->GetParent() )
|
||||
{
|
||||
@@ -344,6 +345,8 @@ void wxFrameLayout::ReparentWindow( wxWindow* pChild, wxWindow* pNewParent )
|
||||
pNewParent->GetChildren().Append( pChild );
|
||||
|
||||
pChild->SetParent( pNewParent );
|
||||
#endif
|
||||
pChild->Reparent(pNewParent);
|
||||
|
||||
return;
|
||||
#endif
|
||||
@@ -795,7 +798,7 @@ void wxFrameLayout::DoSetBarState( cbBarInfo* pBar )
|
||||
pMiniFrm->Create( &GetParentFrame(), -1, pBar->mName,
|
||||
wxPoint( 50,50 ),
|
||||
wxSize ( 0, 0 ),
|
||||
wxSTAY_ON_TOP //| wxTHICK_FRAME
|
||||
wxFRAME_FLOAT_ON_PARENT | wxFRAME_TOOL_WINDOW
|
||||
);
|
||||
|
||||
pMiniFrm->SetClient( pBar->mpBarWnd );
|
||||
|
Reference in New Issue
Block a user