Ticket #625 (closed defect)
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
Change History
Note: See
TracTickets for help on using
tickets.

