Creating a Resource Editor Add-on


The header files

There is only one header file (IEAddOn.h) which you have to include in your project and which you can find in the Develop directory.


Exported functions

There is only one function an add-on should export as extern "C":


void *message_port(BMessage *message);

This function is the interface between the add-on and Interface Elements. The meaning of the return value depends on the message the add-on receives; sometimes there is no return value (can be NULL), or it is a BWindow* or a BMessage*. The main application will know what to expect.


The messages an add-on can receive


The messages an add-on can send

All messages are sent with the BMessenger that the add-on receives in 'New!' or 'Edit' messages.


The reply messages an add-on window can receive

These messages are replies to one of the requests IE_EDIT_AS_HEX, IE_EDIT_AS_TEXT or IE_GET_RESOURCES.