line and paragraph spacing in print output
Posted on 1997-08-04
I would like my printed output to handle variable line spacing (i.e.,leading) and paragraph spacing (extra blank space before and after each paragraph). I am currently using a CEditView to handle the printing process. I have looked at the CEditView source and think I could do this by adjusting the starting location of the textout rectangle but this seems unduly messy. I also looked at adjusting the value of GetTextExtent but how do I poke a new TextExtent back into the GC?
I also looked at the code for the CPageInfo class in the book "MFC Extensions"(??) and that helped me with other aspects of the page layout but stopped short of providing guidence on spacing between lines and/or paragraphs.
The functionality I am looking for is similar to the way Word handles paragraph formating. Any suggestions and pointers to code examples would be greatly appreciated.
Thanks for your time!