X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0fba44b4103530bd7904c4b5720b7568b753daec..ace35c629320bd0980b3ade4ba928f4d5b33b5ed:/src/os2/control.cpp diff --git a/src/os2/control.cpp b/src/os2/control.cpp index d3db1d4e50..83a67ce7ee 100644 --- a/src/os2/control.cpp +++ b/src/os2/control.cpp @@ -132,9 +132,11 @@ bool wxControl::OS2CreateControl( zClass = WC_CONTAINER; dwStyle |= WS_VISIBLE; + wxString sLabel = ::wxPMTextToLabel(rsLabel); + m_hWnd = (WXHWND)::WinCreateWindow( (HWND)GetHwndOf(pParent) // Parent window handle ,(PSZ)zClass // Window class - ,(PSZ)rsLabel.c_str() // Initial Text + ,(PSZ)sLabel.c_str() // Initial Text ,(ULONG)dwStyle // Style flags ,(LONG)0 // X pos of origin ,(LONG)0 // Y pos of origin