Message 1 of 4
Adding a bitmap in custom contextual menu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I've created a custom contextual menu, and I'd like to add a bitmap (as icon) to agrement my menu. Standard ways to add bitmap to menu seem to not work, and after a few search, I've found an example on the ADN. You can find here.
It explains that developer needs to use GDI+ to load bitmap and create a MENUITEMINFO to edit or insert a menu item. Afer using this code, I was able to add an item in my menu with an icon, but the problem was that the entire graphical representation of the menu was modified (look at the image).
left side = original AutoCAD menu // right side = AutoCAD menu with custom menu appended
Has anyone already encountered this problem?
All suggestions are welcomed.
Best regards,
Jonathan
--
Jonathan
Jonathan