#if wxUSE_HELP && wxUSE_MS_HTML_HELP
-#include "wx/filefn.h"
+#include "wx/filename.h"
#include "wx/msw/helpchm.h"
#include "wx/dynload.h"
if ( !s_htmlHelp )
{
- static wxDynamicLibrary s_dllHtmlHelp(_T("HHCTRL.OCX"), wxDL_VERBATIM);
+ static wxDynamicLibrary s_dllHtmlHelp(wxT("HHCTRL.OCX"), wxDL_VERBATIM);
if ( !s_dllHtmlHelp.IsLoaded() )
{
if ( section.Find(wxT(".htm")) != wxNOT_FOUND )
{
// interpret as a file name
- return CallHtmlHelp(HH_DISPLAY_TOPIC, section.wx_str());
+ return CallHtmlHelp(HH_DISPLAY_TOPIC, wxMSW_CONV_LPCTSTR(section));
}
return KeywordSearch(section);
popup.pszText = text;
popup.pt.x = pos.x;
popup.pt.y = pos.y;
- popup.clrForeground =
- popup.clrBackground = (COLORREF)-1;
+ popup.clrForeground = ::GetSysColor(COLOR_INFOTEXT);
+ popup.clrBackground = ::GetSysColor(COLOR_INFOBK);
popup.rcMargins.top =
popup.rcMargins.left =
popup.rcMargins.right =
const wxPoint& pos,
wxWindow *window)
{
- return DoDisplayTextPopup(text.wx_str(), pos, 0, window);
+ return DoDisplayTextPopup(text.t_str(), pos, 0, window);
}
bool wxCHMHelpController::DisplayBlock(long block)
HH_AKLINK link;
link.cbStruct = sizeof(HH_AKLINK);
link.fReserved = FALSE;
- link.pszKeywords = k.wx_str();
+ link.pszKeywords = k.t_str();
link.pszUrl = NULL;
link.pszMsgText = NULL;
link.pszMsgTitle = NULL;
bool wxCHMHelpController::Quit()
{
- return CallHtmlHelp(NULL, HH_CLOSE_ALL);
+ return CallHtmlHelp(NULL, NULL, HH_CLOSE_ALL);
}
wxString wxCHMHelpController::GetValidFilename() const
{
wxString path, name, ext;
- wxSplitPath(m_helpFile, &path, &name, &ext);
+ wxFileName::SplitPath(m_helpFile, &path, &name, &ext);
wxString fullName;
if (path.IsEmpty())