BCGSuite for MFC
CSize CBCGPGlobalUtils::ScaleByDPI ( CBCGPToolBarImages &  images,
const CWnd *  pWnd = NULL 
)

Scales the image list by the DPI (Dots Per Pixel) of the specified window.

Parameters
imagesThe image list to be scaled.
pWndThe pointer to the CWnd object. If this parameter is a CWnd::wndTop address, the active (currently drawn) window will be used.
Returns
The image size in the scaled image list.