Added #define wxHelpController to help.h; added wxWinHelpController::Quit code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@97 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-06-14 20:53:26 +00:00
parent 89a51b2e38
commit e5fb7191bb
5 changed files with 20 additions and 6 deletions

View File

@@ -131,7 +131,13 @@ bool wxWinHelpController::KeywordSearch(const wxString& k)
// Can't close the help window explicitly in WinHelp
bool wxWinHelpController::Quit(void)
{
return TRUE;
if (wxTheApp->GetTopWindow())
{
WinHelp((HWND) wxTheApp->GetTopWindow()->GetHWND(), 0, HELP_QUIT, 0L);
return TRUE;
}
else
return FALSE;
}
// Don't get notified of WinHelp quitting