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:
@@ -283,10 +283,6 @@ void wxStaticText::DoSetLabel(const wxString& str)
|
|||||||
|
|
||||||
wxString wxStaticText::DoGetLabel() const
|
wxString wxStaticText::DoGetLabel() const
|
||||||
{
|
{
|
||||||
HWND hwnd = GetHwnd();
|
return wxGetWindowText(GetHwnd());
|
||||||
LONG textLen = ::WinQueryWindowTextLength(hwnd);
|
|
||||||
wxCharBuffer buffer(textLen+1);
|
|
||||||
::WinQueryWindowText(hwnd, textLen+1, buffer.data());
|
|
||||||
return buffer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user