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
This commit is contained in:
Václav Slavík
2013-12-02 17:46:23 +00:00
parent 747a681f61
commit 59efb1cf1c

View File

@@ -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
//