From 568b27cfd7f0d881bd251bc6959fc253dc110c0d Mon Sep 17 00:00:00 2001 From: Andy Vandijck Date: Tue, 20 Feb 2024 21:14:06 +0100 Subject: [PATCH] Fix html help build --- src/drivers/Qt/HelpPages.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/drivers/Qt/HelpPages.cpp b/src/drivers/Qt/HelpPages.cpp index 5403a490..05bac64b 100644 --- a/src/drivers/Qt/HelpPages.cpp +++ b/src/drivers/Qt/HelpPages.cpp @@ -42,8 +42,21 @@ #include "Qt/ConsoleUtilities.h" #ifdef WIN32 +HWND +WINAPI +HtmlHelpA( + _In_opt_ HWND hwndCaller, + _In_ LPCSTR pszFile, + _In_ UINT uCommand, + _In_ DWORD_PTR dwData +); + +#ifndef HH_DISPLAY_TOPIC +#define HH_DISPLAY_TOPIC 0x0000 +#endif + #include -#include +//#include //#else // Linux or Unix or APPLE //#include //#include @@ -101,7 +114,7 @@ void consoleWin_t::OpenHelpWindow(std::string subpage) #ifdef WIN32 // Windows specific HtmlHelp library function - helpWin = HtmlHelp( HWND(winId()), helpFileName.c_str(), HH_DISPLAY_TOPIC, (DWORD)NULL); + helpWin = HtmlHelpA(HWND(winId()), helpFileName.c_str(), HH_DISPLAY_TOPIC, (DWORD)NULL); if ( helpWin == NULL ) { printf("Error: Failed to open help file '%s'\n", helpFileName.c_str() );