LPaint::PaintRgnDC

#include "ltwrappr.h"

virtual L_INT LPaint::PaintRgnDC(uROP3=SRCCOPY)

L_UINT32 uROP3;

/* windows ROP code for display */

Paints the class object's associated bitmap region to a device context. This function works the same as LPaint::PaintDC, except that only the bitmap region is painted.

Parameter

Description

uROP3

The Windows ROP code that determines how the destination rectangle is updated. This parameter takes the same codes as the Windows BitBlt() function. For ordinary painting, use SRCCOPY.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

The mapping mode of this object's device context must be MM_TEXT.

Required DLLs and Libraries

LTDIS

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

Class Members, LBitmapBase::RectToBitmap, LBitmapBase::RectFromBitmap

Topics:

Raster Image Functions: Displaying Images

 

Raster Image Functions: Palettes

 

Defining and Using a Bitmap Region

 

Handling Palette Changes

 

Implementing Transparency

Example

For an example, refer to LPaint::FrameRgn.