Welcome to mirror list, hosted at ThFree Co, Russian Federation.

HelpUtils.cpp « FileManager « UI « 7zip « CPP - github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c2bf49a58e9659b73b409ff4a6bd863d2e480952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);
}