]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/textentry.cpp
fixing modal dialog quit after nested message box problem
[wxWidgets.git] / src / msw / textentry.cpp
index 968f913fd17d583f1814d0fc8217cae4d3b6ffd0..5e1b753ee73e498e56a8645f6df1cf755f3fafff 100644 (file)
@@ -184,7 +184,7 @@ void wxTextEntry::WriteText(const wxString& text)
     ::SendMessage(GetEditHwnd(), EM_REPLACESEL, 0, (LPARAM)text.wx_str());
 }
 
-wxString wxTextEntry::GetValue() const
+wxString wxTextEntry::DoGetValue() const
 {
     return wxGetWindowText(GetEditHWND());
 }
@@ -451,7 +451,7 @@ wxString wxTextEntry::GetHint() const
         wchar_t buf[256];
         if ( ::SendMessage(GetEditHwnd(), EM_GETCUEBANNER,
                             (WPARAM)buf, WXSIZEOF(buf)) )
-            return buf;
+            return wxString(buf);
     }
 
     return wxTextEntryBase::GetHint();