I cannot figure out why this is happening and it's driving me mad. Please assist if at all possible.
I am writing a class to simplify text printing. The entire class is basically finished, but the one problem is that the last 3 characters on each line (if they reach to the end of the line) are not there!
I've tried the code in simplest terms to try to find the problem but to no avail. I'm doing a simple CDC::TextOut() of a line that fits on the page. In fact, it goes all the way right up to the right border, but, again, the last three characters are "invisible."
The CDC::GetTextExtent() of the string I'm printing is 4800 and the width of a page is 4800. The rect dimensions of the page are left=0, right=4800, top=50, bottom=6350 (with a 1/4" margin all around).
I don't want to just limit the length of a line to 3 characters less because the page will look crooked as one side with have the correct margin and the other will be larger. And besides that with a different font (I'm using courier new currently) it may be more or less than 3 characters.
Do you have any idea why this is happening??? Please help. Thanks much in advance.