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:
@@ -334,14 +334,14 @@ void wxFrameLayout::ReparentWindow( wxWindow* pChild, wxWindow* pNewParent )
|
||||
|
||||
if ( pChild->GetParent() )
|
||||
{
|
||||
bool success = pChild->GetParent()->GetChildren()->DeleteObject( pChild );
|
||||
bool success = pChild->GetParent()->GetChildren().DeleteObject( pChild );
|
||||
|
||||
wxASSERT( success ); // DBG::
|
||||
}
|
||||
|
||||
::SetParent( (HWND)pChild->m_hWnd, (HWND)pNewParent->m_hWnd );
|
||||
|
||||
pNewParent->GetChildren()->Append( pChild );
|
||||
pNewParent->GetChildren().Append( pChild );
|
||||
|
||||
pChild->SetParent( pNewParent );
|
||||
|
||||
|
Reference in New Issue
Block a user