// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
- #pragma implementation "controlbar.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
void wxFrameLayout::ReparentWindow( wxWindow* pChild, wxWindow* pNewParent )
{
-#ifdef __WXMSW__
-#if 0
-
- if ( pChild->GetParent() )
- {
- bool success = pChild->GetParent()->GetChildren().DeleteObject( pChild );
-
- wxASSERT( success ); // DBG::
- }
-
- ::SetParent( (HWND)pChild->m_hWnd, (HWND)pNewParent->m_hWnd );
-
- pNewParent->GetChildren().Append( pChild );
-
- pChild->SetParent( pNewParent );
-#endif
- pChild->Reparent(pNewParent);
-
- return;
-#elif defined(__WXGTK20__)
+#if defined(__WXMSW__) || defined(__WXGTK20__) || defined(__WXMAC__)
pChild->Reparent(pNewParent);
return;
#else
wxUnusedVar(pChild);
wxUnusedVar(pNewParent);
- wxMessageBox( "Sorry, docking is not supported for ports other than MSW and wxGTK" );
+ wxMessageBox( _("Sorry, docking is not supported for ports other than wxMSW, wxMac and wxGTK") );
#endif
}
pMiniFrm->Create( &GetParentFrame(), wxID_ANY, pBar->mName,
wxPoint( 50,50 ),
wxSize ( 0, 0 ),
- wxFRAME_FLOAT_ON_PARENT |
- wxNO_BORDER |
- wxFRAME_NO_TASKBAR
+ wxFRAME_TOOL_WINDOW | wxFRAME_FLOAT_ON_PARENT
);
pMiniFrm->SetClient( pBar->mpBarWnd );