#if USE_HELP
#include <time.h>
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
#include <wx/msw/private.h>
#endif
{
}
-bool wxWinHelpController::Initialize(const wxString& filename, int server)
+bool wxWinHelpController::Initialize(const wxString& filename)
{
m_helpFile = filename;
return TRUE;
// 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