Rotate The Rectangle in GDI
问题 I am using the windows GDI API ExtTextOut function to draw text like this: ExtTextOut(hDC, 2000, 2000, 0, &stRect, PrintText, TextOutLen, aiCharCellDistances); I am trying to rotate the text, and I do rotate the text. But when I fill the rectangle with colors, I found that the rectangle didn't rotate with the text. Is there any way to rotate the rectangle with the text? Or is there a better way to do this? P.S.: My goal is to draw text in the rectangle (like text area) and can rotate it in