QNXWindows limitations?

Im writing a small application on QNX4 with QNXWindows, I have problems with the limitations of using DrawText , my app works fine as long as my lines are not too long and as long as I dont have too many lines - otherwise I get a wrap around effect bottom to top, right to left, and the text is overwritten.
Is there any way to prevent this ? are there any good example QNX windows applications out there…