TextWordWrap example for C++ 5.0 and later
This example wraps text inside the rectangle that is specified for the text object.
// Text location
m_pltRasFxd->PutTextTop(10);
m_pltRasFxd->PutTextLeft(10);
m_pltRasFxd->PutTextWidth(150);
m_pltRasFxd->PutTextHeight(150);
// Text alignment and angle
m_pltRasFxd->PutTextAlign(FXD_TEXTALIGN_LEFT_VCENTER);
m_pltRasFxd->PutTextAngle(0);
// Enable word wrap
m_pltRasFxd->PutTextWordWrap(TRUE);
m_pltRasFxd->DrawText(NULL, m_LEADRasView1.GetClientDC(), "LEADTOOLS Supports WordWrap when drawing text.", NULL);