How to set an icon for C++ plug-in

I would like to make a custom icon for my plug-in, but I don’t know how.
I see in TestPlugIn.cpp file of the Test project, the following macro:

In the comments above I can read that IDI_ICON is an ID to a resource, an icon is treated here as a resource. But how to connect the resource number with an actual icon file?

Is it described in the Guide? Any example?

Regards and have a happy New Year 2021! :grinning:

Hi @and.888.r,

Are you just trying to replace the icon displayed by Rhino’s PlugIn Manager? If so, just edit or replace the project’s .ico file and rebuild the project.


– Dale

Thanks Dale, it seems to be what I needed.