Fix for exiting on Windows

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2007-03-05 11:34:19 +00:00
parent 658ba84dc9
commit 9d90b84e1b
2 changed files with 8 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ bool hvApp::OnInit()
wxFileName::MacRegisterDefaultTypeAndCreator( wxT("htb") , 'HTBD' , 'HTBA' ) ;
#endif
int istyle = wxHF_DEFAULT_STYLE;
int istyle = wxHF_DEFAULT_STYLE|wxHF_OPEN_FILES;
wxString service, windowName, titleFormat, argStr;
wxString book[10];
@@ -238,6 +238,9 @@ void hvApp::OnIdle(wxIdleEvent& event)
{
if (m_exitIfNoMainWindow && !GetTopWindow())
ExitMainLoop();
event.Skip();
event.RequestMore();
}
int hvApp::OnExit()