Look at the constructor for CSingleDocTemplate and CMultiDocTemplate; especially CMultiDocTemplate, since it seems to have an example of the document string that is not in the CSingleDocTemplate documentation. Note that the first parameter is "nIDResource". Supposedly it can be the id of an icon, right?