win32gui.SetMapMode

int = SetMapMode(hdc, MapMode )

Sets the method used for translating logical units to device units

Parameters

hdc : PyHANDLE

Handle to a device context

MapMode : int

The new mapping mode (win32con.MM_*)

Return Value

Returns the previous mapping mode, one of win32con.MM_* constants