SRGraphRect::CalcCRect
CRectSRGraphRect::CalcCRect(CDC *pDC, CWnd *pCWnd)
Calculates a rectangle in pixels from this device independent rectangle using the capabilities of the current output device
Defined in: SRGraphRect.cpp
Return Value
CRect calculated according the current measurement mode taking into account the declared pixels per inch of the device context
Parameters
pDC
Pointer to the DC in use
pCWnd
Pointer to the CWnd in use
Developer Notes
New Behavior: Any occurrence of -1 in the top, left, bottom, or right device independent coordinates will result in the corresponding calculated rectangle being set to the maximum limit for that "side" of the rectangle.For example, calling SetRect(-1,200,-1,-1) makes a component cover all but the top 200 pixels of a window or printer page.