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
This commit is contained in:
Stefan Neis 2007-04-06 20:49:07 +00:00
parent 115de22f78
commit 79f45cf784

View 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());
}