Tentative implementation of wxStaticText::DoGetLabel().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2007-04-06 20:42:29 +00:00
parent a8988cb339
commit 115de22f78

View File

@@ -283,7 +283,10 @@ void wxStaticText::DoSetLabel(const wxString& str)
wxString wxStaticText::DoGetLabel() const wxString wxStaticText::DoGetLabel() const
{ {
// FIXME: how to retrieve the text? HWND hwnd = GetHwnd();
//return wxGetWindowText(GetHWND()); LONG textLen = ::WinQueryWindowTextLength(hwnd);
wxCharBuffer buffer(textLen+1);
::WinQueryWindowText(hwnd, textLen+1, buffer.data());
return buffer;
} }