.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH SetVirtualResolution 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBSetVirtualResolution\fR (GDI32.@) .SH SYNOPSIS BOOL SetVirtualResolution ( HDC \fIhdc\fR, DWORD \fIhorz_res\fR, DWORD \fIvert_res\fR, DWORD \fIhorz_size\fR, DWORD \fIvert_size\fR ) .SH DESCRIPTION .PP Undocumented on msdn. .PP Changes the values of screen size in pixels and millimeters used by the mapping mode functions. .SH PARAMS \fIhdc\fR \fB[In]\fR Device context. .PP \fIhorz_res\fR \fB[In]\fR Width in pixels (equivalent to \fBHORZRES\fR device cap). .PP \fIvert_res\fR \fB[In]\fR Height in pixels (equivalent to \fBVERTRES\fR device cap). .PP \fIhorz_size\fR \fB[In]\fR Width in mm (equivalent to \fBHORZSIZE\fR device cap). .PP \fIvert_size\fR \fB[In]\fR Height in mm (equivalent to \fBVERTSIZE\fR device cap). .PP .SH RETURNS .PP \fBTRUE\fR if successful. \fBFALSE\fR if any (but not all) of the last four params are zero. .SH NOTES .PP This doesn't change the values returned by GetDeviceCaps, just the scaling of the mapping modes. .PP Calling with the last four params equal to zero sets the values back to their defaults obtained by calls to GetDeviceCaps. .SH IMPLEMENTATION .PP Declared in \fB"gdi_private.h"\fR. .PP Implemented in \fB"dlls/gdi32/mapping.c"\fR. .PP Debug channel \fB"dc"\fR.