--- /dev/null
+.topic IDH_PANEL
+This is the topic for the main panel.
+
+.topic IDH_TEXT
+This is the topic for the text control.
+
+.topic IDH_OK
+This is the topic for the OK button.
+
}
#endif
-#if wxUSE_MS_HTML_HELP
- if ( !frame->GetMSHtmlHelpController().Initialize("doc") )
+#if defined(__WXMSW__) && wxUSE_MS_HTML_HELP
+ wxString path(wxGetCwd());
+ if ( !frame->GetMSHtmlHelpController().Initialize(path + "\\doc.chm") )
{
wxLogError("Cannot initialize the MS HTML help system, aborting.");
[TEXT POPUPS]
doc.h
-popups.txt
+cshelp.txt
[INFOTYPES]
+++ /dev/null
-.topic IDH_PANEL
-This is the topic for the main panel.
-
-.topic IDH_TEXT
-This is the topic for the text control.
-
-.topic IDH_OK
-This is the topic for the OK button.
-
wxString str = GetValidFilename(m_helpFile);
- // TODO: what should this be?
- //HtmlHelp(GetSuitableHWND(), (const wxChar*) str, HH_HELP_CONTEXT, (DWORD)contextId);
+ // We also have to specify the popups file (default is cshelp.txt).
+ // str += wxT("::/cshelp.txt");
+
HH_POPUP popup;
popup.cbStruct = sizeof(popup);
popup.hinst = (HINSTANCE) wxGetInstance();