Ok this is MFC if it makes a difference....We have to make a text reader so to speak, and she wants it to have no horizontal scrolls...She wants us to make it so that if a word is going to be split at the end of the window, to not print that word, and bring it down to the next line....I have a few ideas on how to do this but is there someone out there with a given way?
my idea: I'll just print out 1 word at a time, and then just use the getwidth (forget the actual function), if each letter, and have that loop until the end of the word....after that...in each iteration, ill increment the count of pixels needed, then after the word is complete, simply check if its smaller then the room left, and if it is, print it out...if its not, is where i get lost....this is using files, so how exactly would i go back to the beginning of the word?