NAME
SetVirtualResolution (GDI32.@)
SYNOPSIS
BOOL SetVirtualResolution
(
HDC hdc,
DWORD horz_res,
DWORD vert_res,
DWORD horz_size,
DWORD vert_size
)
DESCRIPTION
Undocumented on msdn.
Changes the values of screen size in pixels and millimeters used by the mapping mode functions.
PARAMS
hdc [In] Device context.
horz_res [In] Width in pixels (equivalent to HORZRES device cap).
vert_res [In] Height in pixels (equivalent to VERTRES device cap).
horz_size [In] Width in mm (equivalent to HORZSIZE device cap).
vert_size [In] Height in mm (equivalent to VERTSIZE device cap).
RETURNS
TRUE if successful. FALSE if any (but not all) of the last four params are zero.
NOTES
This doesn't change the values returned by GetDeviceCaps, just the scaling of the mapping modes.
Calling with the last four params equal to zero sets the values back to their defaults obtained by calls to GetDeviceCaps.
IMPLEMENTATION
Declared in "gdi_private.h".
Implemented in "dlls/gdi32/mapping.c".
Debug channel "dc".