]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/stattext.cpp
don't refresh the current cell in SetCellHighlightROPenWidth() if it's invalid (...
[wxWidgets.git] / src / os2 / stattext.cpp
index dc70b334f5b93ccec791be236c27d01f2db15b87..1ee58a4b8c867543dd157eef1d5b6ebd2b8f30c5 100644 (file)
@@ -283,10 +283,6 @@ void wxStaticText::DoSetLabel(const wxString& str)
 
 wxString wxStaticText::DoGetLabel() const
 {
-    HWND hwnd = GetHwnd();
-    LONG textLen = ::WinQueryWindowTextLength(hwnd);
-    wxCharBuffer buffer(textLen+1);
-    ::WinQueryWindowText(hwnd, textLen+1, buffer.data());
-    return buffer;
+    return wxGetWindowText(GetHwnd());
 }