X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bd365871aadca528e03f3b6bb8382a1fdf5f1817..ad653fa23069c5d9378247084f03c9a718c3ad62:/src/msw/helpwin.cpp diff --git a/src/msw/helpwin.cpp b/src/msw/helpwin.cpp index 919c311214..f379594228 100644 --- a/src/msw/helpwin.cpp +++ b/src/msw/helpwin.cpp @@ -21,7 +21,7 @@ #ifndef WX_PRECOMP #endif -#include "wx/filefn.h" +#include "wx/filename.h" #include "wx/msw/helpwin.h" #include @@ -63,7 +63,7 @@ bool wxWinHelpController::DisplayContents(void) wxString str = GetValidFilename(m_helpFile); - return (WinHelp(GetSuitableHWND(this), str.wx_str(), HELP_FINDER, 0L) != 0); + return (WinHelp(GetSuitableHWND(this), str.t_str(), HELP_FINDER, 0L) != 0); } bool wxWinHelpController::DisplaySection(int section) @@ -73,7 +73,7 @@ bool wxWinHelpController::DisplaySection(int section) wxString str = GetValidFilename(m_helpFile); - return (WinHelp(GetSuitableHWND(this), str.wx_str(), HELP_CONTEXT, (DWORD)section) != 0); + return (WinHelp(GetSuitableHWND(this), str.t_str(), HELP_CONTEXT, (DWORD)section) != 0); } bool wxWinHelpController::DisplayContextPopup(int contextId) @@ -82,7 +82,7 @@ bool wxWinHelpController::DisplayContextPopup(int contextId) wxString str = GetValidFilename(m_helpFile); - return (WinHelp(GetSuitableHWND(this), str.wx_str(), HELP_CONTEXTPOPUP, (DWORD) contextId) != 0); + return (WinHelp(GetSuitableHWND(this), str.t_str(), HELP_CONTEXTPOPUP, (DWORD) contextId) != 0); } bool wxWinHelpController::DisplayBlock(long block) @@ -98,8 +98,8 @@ bool wxWinHelpController::KeywordSearch(const wxString& k, wxString str = GetValidFilename(m_helpFile); - return WinHelp(GetSuitableHWND(this), str.wx_str(), HELP_PARTIALKEY, - (ULONG_PTR)k.wx_str()) != 0; + return WinHelp(GetSuitableHWND(this), str.t_str(), HELP_PARTIALKEY, + (ULONG_PTR)wxMSW_CONV_LPCTSTR(k)) != 0; } // Can't close the help window explicitly in WinHelp