X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/39bc0347fda3505f7fb43447f21efd84b9e00b3c..e3276230de335908f70232b2a5ede43665bd8d9d:/src/os2/stattext.cpp diff --git a/src/os2/stattext.cpp b/src/os2/stattext.cpp index 6d641a4417..1ee58a4b8c 100644 --- a/src/os2/stattext.cpp +++ b/src/os2/stattext.cpp @@ -236,7 +236,8 @@ void wxStaticText::SetLabel( m_labelOrig = rsLabel; // save original label // OS/2 does not support neither ellipsize nor markup in static text: - DoSetLabel(GetEllipsizedLabelWithoutMarkup(label)); + DoSetLabel(rsLabel); + DoSetLabel(GetEllipsizedLabelWithoutMarkup()); // // Adjust the size of the window to fit to the label unless autoresizing is @@ -277,12 +278,11 @@ MRESULT wxStaticText::OS2WindowProc( void wxStaticText::DoSetLabel(const wxString& str) { wxString sLabel = ::wxPMTextToLabel(str); - ::WinSetWindowText(GetHwnd(), (PSZ)sLabel.c_str()); + ::WinSetWindowText(GetHwnd(), sLabel.c_str()); } wxString wxStaticText::DoGetLabel() const { - // FIXME: how to retrieve the text? - //return wxGetWindowText(GetHWND()); + return wxGetWindowText(GetHwnd()); }