在onpaint里面:
else
{
CFont font;
LOGFONT lf;
memset(&lf, 0, sizeof(LOGFONT)); // zero out structure
lf.lfHeight = 13; // request a 12-pixel-height font
strcpy(lf.lfFaceName, "宋体"); // request a face name "Arial"
lf.lfEscapement = 2700;
VERIFY(font.CreateFontIndirect(&lf)); // create the font
// Do something with the font just created...
CClientDC dc(this);
CFont* def_font = dc.SelectObject(&font);
dc.SetBkMode(TRANSPARENT);
dc.TextOut(20, 20, "旋转");
dc.SelectObject(def_font);
// Done with the font. Delete the font object.
font.DeleteObject();
//
CDialog::OnPaint();
}