added Russ Smyth fix for VC6 compile problems

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Harco de Hilster
1999-03-09 22:11:42 +00:00
parent 3e418ffc10
commit 0fc52d4112

View File

@@ -334,14 +334,14 @@ void wxFrameLayout::ReparentWindow( wxWindow* pChild, wxWindow* pNewParent )
if ( pChild->GetParent() ) if ( pChild->GetParent() )
{ {
bool success = pChild->GetParent()->GetChildren()->DeleteObject( pChild ); bool success = pChild->GetParent()->GetChildren().DeleteObject( pChild );
wxASSERT( success ); // DBG:: wxASSERT( success ); // DBG::
} }
::SetParent( (HWND)pChild->m_hWnd, (HWND)pNewParent->m_hWnd ); ::SetParent( (HWND)pChild->m_hWnd, (HWND)pNewParent->m_hWnd );
pNewParent->GetChildren()->Append( pChild ); pNewParent->GetChildren().Append( pChild );
pChild->SetParent( pNewParent ); pChild->SetParent( pNewParent );