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