wxFrame::~wxFrame()
{
- m_isBeingDeleted = true;
+ SendDestroyEvent();
+
DeleteAllBars();
} // end of wxFrame::~wxFrame
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
- wxLogError(_T("Error setting parent for StatusBar. Error: %s\n"), sError.c_str());
+ wxLogError(wxT("Error setting parent for StatusBar. Error: %s\n"), sError.c_str());
return;
}
}
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
- wxLogError(_T("Error setting parent for submenu. Error: %s\n"), sError.c_str());
+ wxLogError(wxT("Error setting parent for submenu. Error: %s\n"), sError.c_str());
}
if (!::WinSetOwner(m_hMenu, m_hFrame))
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
- wxLogError(_T("Error setting parent for submenu. Error: %s\n"), sError.c_str());
+ wxLogError(wxT("Error setting parent for submenu. Error: %s\n"), sError.c_str());
}
::WinSendMsg(m_hFrame, WM_UPDATEFRAME, (MPARAM)FCF_MENU, (MPARAM)0);
} // end of wxFrame::InternalSetMenuBar
wxSysColourChangedEvent vEvent2;
vEvent2.SetEventObject(m_frameStatusBar);
- m_frameStatusBar->GetEventHandler()->ProcessEvent(vEvent2);
+ m_frameStatusBar->HandleWindowEvent(vEvent2);
}
#endif //wxUSE_STATUSBAR
if ((lStyle & wxFULLSCREEN_NOSTATUSBAR) && pTheStatusBar)
{
m_nFsStatusBarFields = pTheStatusBar->GetFieldsCount();
- SetStatusBar((wxStatusBar*) NULL);
+ SetStatusBar(NULL);
delete pTheStatusBar;
}
else
wxSize sz( nWidth, nHeight );
wxSizeEvent vEvent( sz, GetId() );
- GetEventHandler()->ProcessEvent(vEvent);
+ HandleWindowEvent(vEvent);
return true;
}
else
wxMenuEvent vEvent(wxEVT_MENU_HIGHLIGHT, nItem);
vEvent.SetEventObject(this);
- GetEventHandler()->ProcessEvent(vEvent); // return value would be ignored by PM
+ HandleWindowEvent(vEvent); // return value would be ignored by PM
}
else
{
- DoGiveHelp(wxEmptyString);
+ DoGiveHelp(wxEmptyString, true);
return false;
}
}
return wxFindWinFromHandle((WXHWND)::WinWindowFromID(m_hFrame, FID_CLIENT));
}
-void wxFrame::SendSizeEvent()
-{
- if (!m_bIconized)
- {
- RECTL vRect = wxGetWindowRect(GetHwnd());
-
- ::WinPostMsg( GetHwnd()
- ,WM_SIZE
- ,MPFROM2SHORT( vRect.xRight - vRect.xLeft
- ,vRect.xRight - vRect.xLeft
- )
- ,MPFROM2SHORT( vRect.yTop - vRect.yBottom
- ,vRect.yTop - vRect.yBottom
- )
- );
- }
-}