]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/control.cpp
Patch from Bo to speed up FindNode() in internal data tree structure (GTK)
[wxWidgets.git] / src / msw / control.cpp
index bd6c3cff174509be5fe04c95f2b83534ad8340c6..030a55f7046c3676bbd12bb177c3b96a8f7e601b 100644 (file)
@@ -140,7 +140,7 @@ bool wxControl::MSWCreateControl(const wxChar *classname,
                        (
                         exstyle,            // extended style
                         classname,          // the kind of control to create
-                        label,              // the window name
+                        label.wx_str(),     // the window name
                         style,              // the window style
                         x, y, w, h,         // the window position and size
                         GetHwndOf(GetParent()),  // parent
@@ -162,6 +162,10 @@ bool wxControl::MSWCreateControl(const wxChar *classname,
         return false;
     }
 
+    // saving the label in m_labelOrig to return it verbatim
+    // later in GetLabel()
+    m_labelOrig = label;
+
     // install wxWidgets window proc for this window
     SubclassWin(m_hWnd);