![]() ![]() ![]() You might also have to modify OnDraw because the amount of the document that fits on the page could be reduced. You might need to adjust the window origin or extent before calling OnDraw to avoid having the body of the page overlap the header or footer. You can define a separate function to print a header or footer, and pass it the printer device context from OnPrint. The OnPrint member function is the appropriate place to print headers or footers because it is called for each page, and because it is called only for printing, not for screen display. This is a common way in which even WYSIWYG programs differ in how they perform printing and screen display. When looking at a printed copy of a document, it's useful to have the name and page number shown in a header or footer. When you look at a document on the screen, the name of the document and your current location in the document are commonly displayed in a title bar and a status bar. This article explains how to add headers and footers to a printed document.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |