WindowDpi ( window )

Parameters

window - window handle

Description

Returns the current DPI of the monitor a window is on.

Save it with the normal rectangle so SetWindowNormalPlacement can preserve logical size on a differently scaled monitor.

See the complete 11_Detachable_Panel.bb sample, which tears tabs off into floating windows and docks them back.


See also: SetWindowNormalPlacement, WindowNormalWidth, WindowNormalHeight.

Index