From 59efb1cf1c42465b876ea5111c84239c59dbe23a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Mon, 2 Dec 2013 17:46:23 +0000 Subject: [PATCH] Don't use native cue banners in wxTextEntry::SetHint() on XP. The code apparently expected EM_SETCUEBANNER to return false on pre-Vista systems (where the cue banners don't work). This isn't the case in practice, so check for Vista explicitly and use the generic implementation on XP. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/textentry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/textentry.cpp b/src/msw/textentry.cpp index 3577581ce2..d8a411ebc4 100644 --- a/src/msw/textentry.cpp +++ b/src/msw/textentry.cpp @@ -916,7 +916,7 @@ void wxTextEntry::SetMaxLength(unsigned long len) bool wxTextEntry::SetHint(const wxString& hint) { - if ( wxUxThemeEngine::GetIfActive() ) + if ( wxGetWinVersion() >= wxWinVersion_Vista && wxUxThemeEngine::GetIfActive() ) { // notice that this message always works with Unicode strings //