From: Stefan Neis Date: Fri, 6 Apr 2007 20:49:07 +0000 (+0000) Subject: Rather use the "obvious" implementation of wxStaticText::DoGetLabel(). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/79f45cf784c134e7f3b76b805a2a02369d8af49a Rather use the "obvious" implementation of wxStaticText::DoGetLabel(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/os2/stattext.cpp b/src/os2/stattext.cpp index dc70b334f5..1ee58a4b8c 100644 --- a/src/os2/stattext.cpp +++ b/src/os2/stattext.cpp @@ -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()); }