Hi,
One of the module of my project of Landscap Re****t needs, where text is
shown rotated by 90 degrees/ exactly vertically. I don=B4t know, how to
rotate this text. I have seen past threads related to the same, also
found CCapionPlus class has been written to resolve the same issue,but
could not locate the same. Can anyone tell me which API should i use to
put /draw text vertically. Can i use MacDrawText(...) ?
Can anyone help me to solve.
This is the code which draw text horizontally.
// Prints the Text at the specified position
virtual void DrawString(int f_nX, int f_nY, char *f_cpStr)
{
::RGBForeColor(&m_sRGB_Text);
MoveTo(f_nX, f_nY + 12);
::DrawText((void *) f_cpStr, 0, strlen(f_cpStr));
if ( m_bLandScapeMode )
{
// Here want to draw text vertically / rotate to 90 degree.
}
}
//////////////////////////////////////////////////////////////////


|