Browse Subversion Repository
Diff of /trunk/teraterm/ttpcmn/ttcmn.c
Parent Directory
| Revision Log
| Patch
| 15 |
#include <tchar.h> |
#include <tchar.h> |
| 16 |
#include <setupapi.h> |
#include <setupapi.h> |
| 17 |
#include <locale.h> |
#include <locale.h> |
| 18 |
|
#include <htmlhelp.h> |
| 19 |
|
|
| 20 |
#include "compat_w95.h" |
#include "compat_w95.h" |
| 21 |
#include "tt_res.h" |
#include "tt_res.h" |
| 1109 |
} |
} |
| 1110 |
} |
} |
| 1111 |
|
|
| 1112 |
|
void FAR PASCAL OpenHelp(UINT Command, DWORD Data) |
| 1113 |
|
{ |
| 1114 |
|
char HomeDir[MAX_PATH]; |
| 1115 |
|
char Temp[MAX_PATH]; |
| 1116 |
|
HWND HWin; |
| 1117 |
|
char HelpFN[MAX_PATH]; |
| 1118 |
|
char UILanguageFile[MAX_PATH]; |
| 1119 |
|
char uimsg[MAX_UIMSG]; |
| 1120 |
|
|
| 1121 |
|
/* Get home directory */ |
| 1122 |
|
if (GetModuleFileName(NULL,Temp,sizeof(Temp)) == 0) { |
| 1123 |
|
return; |
| 1124 |
|
} |
| 1125 |
|
ExtractDirName(Temp, HomeDir); |
| 1126 |
|
|
| 1127 |
|
GetUILanguageFile(UILanguageFile, sizeof(UILanguageFile)); |
| 1128 |
|
get_lang_msg("HELPFILE", uimsg, sizeof(uimsg), "teraterm.chm", UILanguageFile); |
| 1129 |
|
|
| 1130 |
|
// ヘルプのオーナーは常にデスクトップになる (2007.5.12 maya) |
| 1131 |
|
HWin = GetDesktopWindow(); |
| 1132 |
|
_snprintf_s(HelpFN, sizeof(HelpFN), _TRUNCATE, "%s\\%s", HomeDir, uimsg); |
| 1133 |
|
if (HtmlHelp(HWin, HelpFN, Command, Data) == NULL && Command != HH_CLOSE_ALL) { |
| 1134 |
|
char buf[MAX_PATH]; |
| 1135 |
|
get_lang_msg("MSG_OPENHELP_ERROR", uimsg, sizeof(uimsg), "Can't open HTML help file(%s).", UILanguageFile); |
| 1136 |
|
_snprintf_s(buf, sizeof(buf), _TRUNCATE, uimsg, HelpFN); |
| 1137 |
|
MessageBox(HWin, buf, "Tera Term: HTML help", MB_OK | MB_ICONERROR); |
| 1138 |
|
} |
| 1139 |
|
} |
| 1140 |
|
|
| 1141 |
HWND FAR PASCAL GetNthWin(int n) |
HWND FAR PASCAL GetNthWin(int n) |
| 1142 |
{ |
{ |
| 1143 |
if (n<pm->NWin) { |
if (n<pm->NWin) { |
|
|
Legend:
| Removed from v.5307 |
|
| changed lines |
| |
Added in v.5308 |
|
|
| |