Adding a bitmap in custom contextual menu

Adding a bitmap in custom contextual menu

maisoui
Advocate Advocate
439 Views
3 Replies
Message 1 of 4

Adding a bitmap in custom contextual menu

maisoui
Advocate
Advocate

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).


custommenu_gdiplus

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
0 Likes
440 Views
3 Replies
Replies (3)
Message 2 of 4

Balaji_Ram
Alumni
Alumni

Hi Jonathan,

 

I have seen a similar behavior that was reproducible on 64 bit systems while it worked ok on 32 bit systems.

We already have a change request logged for this behavior.

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 4

maisoui
Advocate
Advocate

Hi,

 

Thank you for your reply. Yes, I forgot to mention that I develop on Windows 7 64 bits.

Is it possible to have a link on a tracking page for this request?

 

Regards,

Jonathan

 

--
Jonathan
0 Likes
Message 4 of 4

Balaji_Ram
Alumni
Alumni

Sorry, I do not have access to a link that I can share with you.

 

 

 

 

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes