wxHyperTextMapping::AddMapping

void AddMapping(int blockType, int textSize, int textFamily, int textStyle, int textWeight, char * textColour, char *name, int attribute = -1, int visibility = TRUE)

Adds a mapping for a block type. blockType must be unique, and any parameters which have the default value (-1 for integers, NULL for strings) will be instantiated according to the context of the block. That is, if a block is nested with another block, the outer block's characteristics are used to fill in the default values.

See wxhelp.cc for examples.