InsertResMenu
ResType theResType ; resource Type; e.g. 'FONT' or 'DRVR' short afterItem ; names are inserted after this; 0=at top
InsertResMenu searches all open resource files to obtain a list of the names of resources of a specified type. The names are inserted into the specified
menu, in alphabetical order, starting at the specified position.
leads to a variable-length MenuInfo structure that is allocated on the heap.
theResType is a 4-byte resource type, such as 'FONT' or 'DRVR'. All such
resources are searched and their names are added to theMenu as
items.
Note: To exempt an application resource from this list, you may name it starting with a period (.) or percent sign (%). Or, you can
remove it from the list before displaying via DelMenuItem.
Notes: The items are sorted alphabetically, ignoring case. This does not sort
items that are already in the menu.
Since inserting, for example, a list of fonts, into the middle of a menu will
likely cause confusion, we are encouraged to avoid using this function.