diff options
Diffstat (limited to 'CPP/7zip/FileManager/HelpUtils.cpp')
-rwxr-xr-x | CPP/7zip/FileManager/HelpUtils.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/CPP/7zip/FileManager/HelpUtils.cpp b/CPP/7zip/FileManager/HelpUtils.cpp new file mode 100755 index 00000000..c2bf49a5 --- /dev/null +++ b/CPP/7zip/FileManager/HelpUtils.cpp @@ -0,0 +1,23 @@ +// HelpUtils.cpp + +#include "StdAfx.h" + +#include <HtmlHelp.h> + +#include "Common/StringConvert.h" +#include "HelpUtils.h" +#include "ProgramLocation.h" + +static LPCWSTR kHelpFileName = L"7-zip.chm::/"; + +void ShowHelpWindow(HWND hwnd, LPCWSTR topicFile) +{ + UString path; + if (!::GetProgramFolderPath(path)) + return; + path += kHelpFileName; + path += topicFile; + HtmlHelp(hwnd, GetSystemString(path), HH_DISPLAY_TOPIC, NULL); +} + + |