GetROP2

Syntax

int GetROP2(hDC)

This function retrieves the current drawing mode. The drawing mode specifies how the pen or interior color and the color already on the display surface are combined to yield a new color.

Parameter Type/Description  

hDC HDC Identifies the device context for a raster device.  

Return Value

The return value specifies the drawing mode. For a list of the drawing modes, see Table 4.16, “Drawing Modes,” in the SetROP2 function, later in this chapter.