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:
@@ -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
|
||||
//
|
||||
|
Reference in New Issue
Block a user