]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/helpchm.cpp
VC6 (harmless) warning fix
[wxWidgets.git] / src / msw / helpchm.cpp
index 7a5f3cb6f9e01c4fc3ecf9713e0deb913c5d7170..3f05606e8dc80351b5f01321b6b95581cbf027d6 100644 (file)
@@ -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();
 }