我不是C++程序員 - 在幫助製作和其他編程語言方面做得更多,例如Visual Basic(.net)。
不過我更新了我的C++ CHM連接樣品,並試圖您的需求,與VS 2008
這是爲我工作。在列表中向下顯示了「鮮花」條目,但用戶必須單擊以顯示(使用德語:Anzeigen「)以獲取主題內容。在快照中顯示的情況下,兩個主題中有一個關鍵字」花朵「 http://www.help-info.de/en/Help_Info_HTMLHelp/hh_api.htm已一些更多的HTML幫助API信息
的四個按鈕的代碼(見SNAP):
private: System::Void btnHelp_Click(System::Object^ sender, System::EventArgs^ e) {
System::Windows::Forms::Help::ShowHelp(this, helpProvider1->HelpNamespace);
}
private: System::Void btnShowIndex_Click(System::Object^ sender, System::EventArgs^ e) {
System::Windows::Forms::Help::ShowHelpIndex(this, helpProvider1->HelpNamespace);
}
private: System::Void btnShowIndexKeyword_Click(System::Object^ sender, System::EventArgs^ e) {
System::Windows::Forms::Help::ShowHelp(this, helpProvider1->HelpNamespace, System::Windows::Forms::HelpNavigator::Index, L"Flowers");
}
private: System::Void btnShowSearchTab_Click_1(System::Object^ sender, System::EventArgs^ e) {
System::Windows::Forms::Help::ShowHelp(this, helpProvider1->HelpNamespace, System::Windows::Forms::HelpNavigator::Find, L"Garden");
}