// wrap the real HtmlHelp() but just return false (and not crash) if it // couldn't be loaded // // it also takes a wxWindow instead of HWND static bool CallHtmlHelpFunction(wxWindow *win, const wxChar *str, UINT uint, DWORD dword) { HTMLHELP htmlHelp = GetHtmlHelpFunction(); return htmlHelp && htmlHelp(GetSuitableHWND(win), str, uint, dword); }
bool wxCHMHelpController::Initialize(const wxString& filename) { if ( !GetHtmlHelpFunction() ) return false; m_helpFile = filename; return true; }
/* static */ bool wxCHMHelpController::CallHtmlHelp(wxWindow *win, const wxChar *str, unsigned cmd, WXWPARAM param) { HTMLHELP htmlHelp = GetHtmlHelpFunction(); return htmlHelp && htmlHelp(GetSuitableHWND(win), str, cmd, param); }