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:
committed by
Vadim Zeitlin
parent
f68dad69cc
commit
61083f4871
@@ -945,7 +945,8 @@ bool wxMenuItem::OnDrawItem(wxDC& dc, const wxRect& rc,
|
|||||||
data->SeparatorMargin.ApplyTo(rcSeparator);
|
data->SeparatorMargin.ApplyTo(rcSeparator);
|
||||||
|
|
||||||
RECT rcGutter = rcSelection;
|
RECT rcGutter = rcSelection;
|
||||||
rcGutter.right = data->ItemMargin.cxLeftWidth
|
rcGutter.right = rcGutter.left
|
||||||
|
+ data->ItemMargin.cxLeftWidth
|
||||||
+ data->CheckBgMargin.cxLeftWidth
|
+ data->CheckBgMargin.cxLeftWidth
|
||||||
+ data->CheckMargin.cxLeftWidth
|
+ data->CheckMargin.cxLeftWidth
|
||||||
+ imgWidth
|
+ imgWidth
|
||||||
|
Reference in New Issue
Block a user