Fix rendering of owner-drawn multi-column menus in wxMSW

Compute the item rectangle bounds correctly for the items in non-first column.

Closes #17072.
This commit is contained in:
Pete Bannister 2016-09-09 23:39:20 +02:00 committed by Vadim Zeitlin
parent f68dad69cc
commit 61083f4871

View File

@ -945,7 +945,8 @@ bool wxMenuItem::OnDrawItem(wxDC& dc, const wxRect& rc,
data->SeparatorMargin.ApplyTo(rcSeparator);
RECT rcGutter = rcSelection;
rcGutter.right = data->ItemMargin.cxLeftWidth
rcGutter.right = rcGutter.left
+ data->ItemMargin.cxLeftWidth
+ data->CheckBgMargin.cxLeftWidth
+ data->CheckMargin.cxLeftWidth
+ imgWidth