BCGSuite for MFC
void CBCGPGlobalUtils::ScaleByDPI ( CBCGPVisualContainer container,
BOOL  bScaleFonts = TRUE,
const CWnd *  pWnd = NULL 
)

Scales the visual container by the DPI (Dots Per Pixel) of the specified window.

Parameters
containerThe visual container to be scaled.
bScaleFontsSpecifies whether the visual container fonts should be scaled.
pWndThe pointer to the CWnd object. If this parameter is a CWnd::wndTop address, the active (currently drawn) window will be used.