3 skipped lines |
4 | | 4 | | // Author: Aleksandras Gluchovas |
|
|
|
7 | | // RCS-ID: $Id: controlbar.cpp,v 1.26 2005/08/23 16:02:44 ABX Exp $ | | 7 | | // RCS-ID: $Id: controlbar.cpp,v 1.26.2.1 2006/02/11 02:06:12 MR Exp $ |
8 | | 8 | | // Copyright: (c) Aleksandras Gluchovas |
|
9 | | 9 | | // Licence: wxWindows license |
|
10 | | 10 | | ///////////////////////////////////////////////////////////////////////////// |
|
359 skipped lines |
|
371 | | 371 | | void wxFrameLayout::ReparentWindow( wxWindow* pChild, wxWindow* pNewParent ) |
|
|
373 | | #ifdef __WXMSW__ | | |
374 | | #if 0 | | |
375 | | | | |
376 | | if ( pChild->GetParent() ) | | |
377 | | { | | |
378 | | bool success = pChild->GetParent()->GetChildren().DeleteObject( pChild ); | | |
379 | | | | |
380 | | wxASSERT( success ); // DBG:: | | |
381 | | } | | |
382 | | | | |
383 | | ::SetParent( (HWND)pChild->m_hWnd, (HWND)pNewParent->m_hWnd ); | | |
384 | | | | |
385 | | pNewParent->GetChildren().Append( pChild ); | | |
386 | | | | |
387 | | pChild->SetParent( pNewParent ); | | |
388 | | #endif | | |
389 | | pChild->Reparent(pNewParent); | | |
390 | | | | |
391 | | return; | | |
392 | | #elif defined(__WXGTK20__) | | 373 | | #if defined(__WXMSW__) || defined(__WXGTK20__) || defined(__WXMAC__) |
393 | | 374 | | pChild->Reparent(pNewParent); |
|
|
|
8 skipped lines |
|
405 | | 386 | | wxUnusedVar(pChild); |
|
406 | | 387 | | wxUnusedVar(pNewParent); |
|
407 | | wxMessageBox( "Sorry, docking is not supported for ports other than MSW and wxGTK" ); | | 388 | | wxMessageBox( _("Sorry, docking is not supported for ports other than wxMSW, wxMac and wxGTK") ); |
|
|
|
3131 skipped lines |