Ticket #625 (closed defect)

Opened 7 years ago

Last modified 7 years ago

Bitmap size in menu items.

Reported by: anonymous Owned by: vadz
Priority: normal Milestone:
Component: wxMSW Version:
Keywords: Cc: vadz
Blocked By: Patch: no
Blocking:

Description

I dynamically construct a popup menu, setting a bitmap
for each of its items. Between two construction of the
popup menu, the bitmap sizes can change.

When bitmaps get larger, every thing works fine. But
when bitmaps get smaller, the width of the bitmap in the
menu item remains unchanged.

I walked through the code and found the place where the
bug occurs. It is in "ownerdrw.cpp", line 150, "if ((size_t)
GetMarginWidth() < adjustedWidth)". I changed the test
operator to "different".

Attachments

MenuItem Bitmap.png download (16.0 KB) - added by nobody 7 years ago.
Screenshots

Change History

Changed 7 years ago by nobody

Screenshots

Changed 7 years ago by vadz

Ok, I've changed the code as indicated, thanks.

Note: See TracTickets for help on using tickets.