CDC::SetROP2

int SetROP2( int nDrawMode );

Return Value

The previous drawing mode.

It can be any of the values given in the Windows SDK documentation.

Parameters

nDrawMode

Specifies the new drawing mode. It can be any of the following values:

Remarks

Sets the current drawing mode. The drawing mode specifies how the colors of the pen and the interior of filled objects are combined with the color already on the display surface.

The drawing mode is for raster devices only; it does not apply to vector devices. Drawing modes are binary raster-operation codes representing all possible Boolean combinations of two variables, using the binary operators AND, OR, and XOR (exclusive OR), and the unary operation NOT.

CDC OverviewClass MembersHierarchy Chart

See Also   CDC::GetDeviceCaps, CDC::GetROP2, ::SetROP2