void wxAppBase::SetActive(bool active, wxWindow * WXUNUSED(lastFocus))
{
+ if ( active == m_isActive )
+ return;
+
m_isActive = active;
+
+ wxActivateEvent event(wxEVT_ACTIVATE_APP, active);
+ event.SetEventObject(this);
+
+ (void)ProcessEvent(event);
}
#endif // wxUSE_GUI
// this function is called when an assert fails
void wxOnAssert(const wxChar *szFile, int nLine, const wxChar *szMsg)
{
- wxMessageBox( "ttest", "test", wxOK );
- return;
-
if ( !wxTheApp )
{
// by default, show the assert dialog box - we can't customize this