I am debugging some code that uses the MFC CDC Class for printing documents, and which have issues with the preview-printing for determining the total number of pages.
When comparing return values from CDC::DrawText for certain elements, I notice that when drawing to memory the return value is positive but then when drawing to printer the return value is negative.
The CDC documentations says DrawText return "The height of the text if the function is successful."
What does a negative value mean?