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

Calculates the number of pages to print.

Returns
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.

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