summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0e1ead0)
Added several small fixes from Scott Pleiter
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3002
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxFrameLayout::ReparentWindow( wxWindow* pChild, wxWindow* pNewParent )
{
#ifdef __WXMSW__
void wxFrameLayout::ReparentWindow( wxWindow* pChild, wxWindow* pNewParent )
{
#ifdef __WXMSW__
if ( pChild->GetParent() )
{
if ( pChild->GetParent() )
{
pNewParent->GetChildren().Append( pChild );
pChild->SetParent( pNewParent );
pNewParent->GetChildren().Append( pChild );
pChild->SetParent( pNewParent );
+#endif
+ pChild->Reparent(pNewParent);
pMiniFrm->Create( &GetParentFrame(), -1, pBar->mName,
wxPoint( 50,50 ),
wxSize ( 0, 0 ),
pMiniFrm->Create( &GetParentFrame(), -1, pBar->mName,
wxPoint( 50,50 ),
wxSize ( 0, 0 ),
- wxSTAY_ON_TOP //| wxTHICK_FRAME
+ wxFRAME_FLOAT_ON_PARENT | wxFRAME_TOOL_WINDOW
);
pMiniFrm->SetClient( pBar->mpBarWnd );
);
pMiniFrm->SetClient( pBar->mpBarWnd );
void wxToolWindow::OnPaint( wxPaintEvent& event )
{
void wxToolWindow::OnPaint( wxPaintEvent& event )
{
wxWindowDC dc( this );
int w,h;
wxWindowDC dc( this );
int w,h;