BCGControlBar Pro for MFC
virtual int CBCGPGridCtrl::CalcPages ( CDC *  pDC,
CPrintInfo *  pInfo 

Calculates the number of pages to print.

The number of pages to print.

This function is called by the framework inside the CBCGPGridCtrl::OnCalcPrintPages. The default implementation counts grid items to fit per page and return the count of pages.

pDCA pointer to a printer's device context.
pInfoPoints to a CPrintInfo structure that describes the current print job.