mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 17:15:00 -06:00
28 lines
496 B
C++
Executable File
28 lines
496 B
C++
Executable File
// 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::/";
|
|
|
|
#ifdef UNDER_CE
|
|
void ShowHelpWindow(HWND, LPCWSTR)
|
|
{
|
|
}
|
|
#else
|
|
void ShowHelpWindow(HWND hwnd, LPCWSTR topicFile)
|
|
{
|
|
UString path;
|
|
if (!::GetProgramFolderPath(path))
|
|
return;
|
|
path += kHelpFileName;
|
|
path += topicFile;
|
|
HtmlHelp(hwnd, GetSystemString(path), HH_DISPLAY_TOPIC, NULL);
|
|
}
|
|
#endif
|