From: Vadim Zeitlin Date: Mon, 24 Mar 2003 18:18:05 +0000 (+0000) Subject: draw multiline labels in owner-drawn buttons correctly (fixes 672894) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0fa939c29a42e6229e288455e5eea8249d888bd7 draw multiline labels in owner-drawn buttons correctly (fixes 672894) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/button.cpp b/src/msw/button.cpp index 98b2176f60..7fcfa743d4 100644 --- a/src/msw/button.cpp +++ b/src/msw/button.cpp @@ -415,8 +415,7 @@ static void DrawButtonText(HDC hdc, COLORREF colOld = SetTextColor(hdc, col); int modeOld = SetBkMode(hdc, TRANSPARENT); - DrawText(hdc, text, text.length(), pRect, - DT_CENTER | DT_VCENTER | DT_SINGLELINE); + ::DrawText(hdc, text, text.length(), pRect, DT_CENTER | DT_VCENTER); SetBkMode(hdc, modeOld); SetTextColor(hdc, colOld);