mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-11 18:07:08 -06:00
3.13
This commit is contained in:
26
7zip/FileManager/HelpUtils.cpp
Executable file
26
7zip/FileManager/HelpUtils.cpp
Executable file
@@ -0,0 +1,26 @@
|
||||
// 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))
|
||||
{
|
||||
// AfxMessageBox(TEXT("App Path Registry Item not found"));
|
||||
return;
|
||||
}
|
||||
path += kHelpFileName;
|
||||
path += topicFile;
|
||||
HtmlHelp(hwnd, GetSystemString(path), HH_DISPLAY_TOPIC, NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user