Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.05 KB

SetMapMode.md

File metadata and controls

51 lines (33 loc) · 1.05 KB

Home

Function name : SetMapMode

Group: Coordinate Space and Transformation - Library: gdi32


Sets the mapping mode of the specified device context.


Declaration:

int SetMapMode(
	HDC hdc,        // handle to device context
	int fnMapMode   // new mapping mode
);  

FoxPro declaration:

DECLARE INTEGER SetMapMode IN gdi32;
	INTEGER hdc, INTEGER fnMapMode
  

Parameters:

hdc [in] Handle to the device context.

fnMapMode [in] Specifies the new mapping mode.


Return value:

If the function succeeds, the return value identifies the previous mapping mode.


Comments:

The mapping mode defines the unit of measure used to transform page-space units into device-space units, and also defines the orientation of the device"s x and y axes.

See also: GetMapMode.