I don't understand how to print multiple pages of text. I have nothing in my OnBeginPrinting or OnEndPrinting functions and my OnPrint and OnDraw functions are essentially,

OnPrint(CDC *pDC, CPrintInfo* pInfo)
{
OnDraw(pDC);
}

OnDraw(CDC *pDC)
{
for (int y=0; y<500; y+=20)
pDC->TextOut(5, y, "Text");
}

How can I put unique text on page 2? If I declare SetMaxPage(2) I get the same text on the second page and this is really frustrating. How can I call a page break and continue text on the next page?

Any response any one can give me will be greatly appreciated.