Probably you want the IDXPGBEGIN and TIDXPGBEGIN resources.
The layout of each page is demonstrated clearly at:
I have successfully added background and text colors to my message pages,
but not my index pages...
In the rcfile, I can't see where to put the tags for page customization...
Tries a few places just with the <head> tag, but to no avail.
I want to add images to the pages too, but that's not clear either.
-thanks for any advice!