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:
parent
f68dad69cc
commit
61083f4871
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user