BCGControlBar Pro for MFC
virtual CRect CBCGPGridCtrl::OnGetPageMargins ( CDC *  pDC,
CPrintInfo *  pInfo 
)
virtual

Returns sizes of page margins.

This function is called by the framework to get sizes of the top, left, bottom and right margins of the printed page. Override this function to set up custom page margins.

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