I'm attaching here a simple project I developed some time ago for testing bitmap rotation facilities I needed for an application of mine. You can use it as a sample of how this operation can be made.
In order to do what you want, you may need to substitute controls' labels with text controls (I'm not aware of a way of obtaining an image of a control's label only). When you load your panel, you can:
- Fill the text controls with the text labels you're defining programmatically
- Retrieve each text image as a bitmap using
GetCtrlDisplayBitmap (panel, control, 0, &bitmapID);
- Rotate the bitmap and pass it to an image control adeguately sized and placed in the UIR
- Discard the text controls (or hide them if you need them afterwards)
An improvem
ent to this simple approach could be to dinamically create one single text control and perform all the procedure using it instead of several text controls.
Hope this helps
Roberto