Fix for [ 748805 ] Assert failure for specified situation in samples/controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -415,7 +415,8 @@ 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);
|
||||
// Note: we must have DT_SINGLELINE for DT_VCENTER to work.
|
||||
::DrawText(hdc, text, text.length(), pRect, DT_SINGLELINE | DT_CENTER | DT_VCENTER);
|
||||
|
||||
SetBkMode(hdc, modeOld);
|
||||
SetTextColor(hdc, colOld);
|
||||
|
Reference in New Issue
Block a user