См. определение в файле ActionInfoGrids.c строка 108
Перекрестные ссылки CreateNewIcon(), EnumTools::GetEnumSize(), m_LastPartMask и m_LastToolMask.