X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/59af881e445d3343b0ab5ed24f92d21a524c5a9f..4fb9d560c4f71846e38c67781325405cff9a9665:/src/msw/helpchm.cpp diff --git a/src/msw/helpchm.cpp b/src/msw/helpchm.cpp index 9e8c8846fa..3f05606e8d 100644 --- a/src/msw/helpchm.cpp +++ b/src/msw/helpchm.cpp @@ -33,7 +33,7 @@ #endif #include "wx/msw/private.h" -#include "wx/msw/missing.h" +#include "wx/msw/htmlhelp.h" // ---------------------------------------------------------------------------- // utility functions to manage the loading/unloading @@ -79,7 +79,7 @@ static bool LoadHtmlHelpLibrary() static void UnloadHtmlHelpLibrary() { if ( gs_htmlHelp ) - { + { if (wxPluginManager::UnloadLibrary( _T("HHCTRL.OCX") )) gs_htmlHelp = 0; } @@ -243,6 +243,7 @@ wxString wxCHMHelpController::GetValidFilename(const wxString& file) const wxCHMHelpController::~wxCHMHelpController() { + gs_htmlHelp(GetSuitableHWND(), 0, HH_CLOSE_ALL, 0L); UnloadHtmlHelpLibrary(); }