]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/stattext.cpp
added missing headers (patch 1774617)
[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());
 }