| CBCGPRect CBCGPGlobalUtils::ScaleByDPI | ( | const CBCGPRect & | rect, |
| const CWnd * | pWnd = NULL, |
||
| BOOL | bKeepCenter = FALSE |
||
| ) |
Returns the rectangle scaled by the DPI (Dots Per Pixel) of the specified window.
| rect | The rectangle to be scaled. |
| pWnd | The pointer to the CWnd object. If this parameter is a CWnd::wndTop address, the active (currently drawn) window will be used. |
| bKeepCenter | Specifies whether the returned rectangle center is the same as the source rectangle center point. |