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