CGXGridCore::OnGridPrepareDC
virtual void OnGridPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
pDC
Points to the device context to be used for rendering an image of the document.
pInfo
Points to a CPrintInfo structure that describes the current print job if OnGridPrepareDC is being called for printing or print preview; the m_nCurPage member specifies the page about to be printed. This parameter is NULL if OnGridPrepareDC is being called for screen display.
Remarks
This method initializes the mapping mode to 96 pixels per inch both for printing and display.
See the description of CView::OnPrepareDC for more information.