BOOL TSetupSheet::EvCommand(WORD wNotifyCode, WORD wID, LPARAM hWndCtl) { if (wID == HELP_BUTTON) { WCHAR *section = L""; if (resId == MAIN_SHEET) { section = L"#setting_default"; } else if (resId == IO_SHEET) { section = L"#setting_io"; } else if (resId == PHYSDRV_SHEET) { section = L"#setting_physical"; } else if (resId == PARALLEL_SHEET) { section = L"#setting_parallel"; } else if (resId == COPYOPT_SHEET) { section = L"#setting_copyopt"; } else if (resId == DEL_SHEET) { section = L"#setting_del"; } else if (resId == LOG_SHEET) { section = L"#setting_log"; } else if (resId == MISC_SHEET) { section = L"#setting_misc"; } ShowHelpW(NULL, cfg->execDir, GetLoadStrW(IDS_FASTCOPYHELP), section); return TRUE; } return FALSE; }
HWND ShowHelpU8(HWND hOwner, const char *help_dir, const char *help_file, const char *section) { Wstr dir(help_dir); Wstr file(help_file); Wstr sec(section); return ShowHelpW(hOwner, dir.Buf(), file.Buf(), sec.Buf()); }