diff --git a/include/wx/msw/winundef.h b/include/wx/msw/winundef.h index af1cc51108..d1d9610808 100644 --- a/include/wx/msw/winundef.h +++ b/include/wx/msw/winundef.h @@ -58,6 +58,21 @@ } #endif +// FindText + +#ifdef FindText + #undef FindText + + inline HWND APIENTRY FindText(LPFINDREPLACE lpfindreplace) + { + #ifdef UNICODE + return FindTextW(lpfindreplace); + #else + return FindTextA(lpfindreplace); + #endif // !UNICODE + } +#endif + // GetCharWidth #ifdef GetCharWidth