Here we go:

I'm working on an app that involves a lot of animated formatted text which comes from a Richtext box. The text is rendered to an offscreen buffer via FormatRange and then BitBLted around the Form.

In order to speed things up I want to set the Buffer to 8 bit, 256 colors. Initial tests show that the performance is OK, the image quality is ok as well.

How can I set up the offscreen buffer so that the colors survive the reduction to 8 bit? I guess that would involve messing with palettes, but how to do that?

TIA