From ca93de9778ecf613ac97e695a5ed6a4a6d8b7d5c Mon Sep 17 00:00:00 2001 From: Chris Elliott Date: Fri, 27 Sep 2002 13:58:23 +0000 Subject: [PATCH] fix bug with #define FindText git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/winundef.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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