I would use DrawTextEx. You can pass a TRect to it and it will wrap the lines for you.