// For some reason, wxWindows can activate another task altogether
// when a frame is destroyed after a modal dialog has been invoked.
// Try to bring the parent to the top.
+ // MT:Only do this if this frame is currently the active window, else weird
+ // things start to happen
+ if ( wxGetActiveWindow() == this )
if (GetParent() && GetParent()->GetHWND())
::BringWindowToTop((HWND) GetParent()->GetHWND());
}
*y = point.y;
}
-void wxFrame::DoSetSize(int x, int y, int width, int height, int sizeFlags)
-{
- wxWindow::DoSetSize(x, y, width, height, sizeFlags);
-
- wxSizeEvent event(wxSize(width, height), m_windowId);
- event.SetEventObject( this );
- GetEventHandler()->ProcessEvent(event);
-}
-
bool wxFrame::Show(bool show)
{
int cshow;
return FALSE;
wxMenuItem *item = bar->FindItemForId(id);
- if ( !item )
- return FALSE;
- if ( item->IsCheckable() )
+ if ( item && item->IsCheckable() )
{
bar->Check(id, !bar->IsChecked(id)) ;
}