- gs_htmlHelp(GetSuitableHWND(this), (const wxChar*) str, HH_DISPLAY_TEXT_POPUP, (DWORD) & popup);
- return true;
+ return CallHtmlHelpFunction(GetParentWindow(),
+ str.wx_str(), HH_DISPLAY_TEXT_POPUP,
+ wxPtrToUInt(&popup));
+}
+
+bool
+wxCHMHelpController::DisplayTextPopup(const wxString& text, const wxPoint& pos)
+{
+ return ShowContextHelpPopup(text, pos, GetParentWindow());