La Web del Programador: Comunidad de Programadores
 
    Pregunta:  7693 - TEXTO INCLINADO EN VISUAL C++
Autor:  Luis
Como puedo escribir un texto inclinado, osea con un angulo de inclinacion en Visual C++

  Respuesta:  Juan Pablo Crossley
Facil... usa esto:

hdc = BeginPaint(hWnd, &ps);
// TODO: Add any drawing code here...
RECT rt;
GetClientRect(hWnd, &rt);
LOGFONT f;
f.lfEscapement = -100; //Angulo de inclinacion
strcpy(f.lfFaceName, "Arial"); // tipo de letra
f.lfHeight = 12;
HFONT font = ::CreateFontIndirect(&f);
SelectObject(hdc, font);
DrawText(hdc, szHello, strlen(szHello), &rt, DT_CENTER);
DeleteObject(font);
EndPaint(hWnd, &ps);