]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/control.cpp
Apply minimal DC patch.
[wxWidgets.git] / src / os2 / control.cpp
index d3db1d4e50b1e58616e59694af3bc0e63c38e269..83a67ce7ee1e847d805b4108d6a84e00017ed5df 100644 (file)
@@ -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