1) Create productcmdheader command Header
#include "CATCommandHeader.h"
Macdeclareheader (Productcmdheader);
2) in the emptyCreateCommands
创建Command Header
void Ipsaddin::createcommands () {
printf ("module addin init 2 \ n");
New Productcmdheader ("startips", "Ipsaddin", "Startipscmd", (void *) NULL);
...
}
3) Create PRODUCTCMDHEADER.CATRSC
In the directory: Create a file in \intel_a\resources\msgcatalog PRODUCTCMDHEADER.CATRSC
Defined in the file:
Productcmdheader. startips. icon.pressed = "ip_wkasdrafting"; //
ProductCmdHeader.StartIPS.Icon.Focused = "i_wknvdrafting";
ProductCmdHeader.StartIPS.Icon.Normal = "i_wkasdrafting";
Ip_wkasdrafting Picture Name
Startips command name
Pressed mouse button down
Focused mouse click on the picture;
Normal Display icon
4) Picture Location
Image format is BMP format
Picture placed in the table of contents:.. \intel_a\resources\graphic\icons\ under
Add an icon to the command in addin