X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/730078f8ac0a75a75a49060c42c2fc8ec96939a0..ba49d2acf95d53517719c4fd9ac2ad5aaa13540b:/src/msw/helpwin.cpp diff --git a/src/msw/helpwin.cpp b/src/msw/helpwin.cpp index 72339e4d98..f379594228 100644 --- a/src/msw/helpwin.cpp +++ b/src/msw/helpwin.cpp @@ -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