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
This commit is contained in:
Vadim Zeitlin
2003-03-24 18:18:05 +00:00
parent c5f5e891ec
commit 0fa939c29a

View File

@@ -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);