X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad02525dadb780a4bacb6482ac633e90a10fe25c..6989272940123609336605ddbc1ebe3db001ccb1:/src/msw/control.cpp diff --git a/src/msw/control.cpp b/src/msw/control.cpp index bd6c3cff17..030a55f704 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -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);