virtual BOOL CreateCompatibleDC( CDC* pDC );
Return Value
Nonzero if the function is successful; otherwise 0.
Parameters
pDC
A pointer to a device context. If pDC is NULL, the function creates a memory device context that is compatible with the system display.
Remarks
Creates a memory device context that is compatible with the device specified by pDC. A memory device context is a block of memory that represents a display surface. It can be used to prepare images in memory before copying them to the actual device surface of the compatible device.
When a memory device context is created, GDI automatically selects a 1-by-1 monochrome stock bitmap for it. GDI output functions can be used with a memory device context only if a bitmap has been created and selected into that context.
This function can only be used to create compatible device contexts for devices that support raster operations. See the CDC::BitBlt member function for information regarding bit-block transfers between device contexts. To determine whether a device context supports raster operations, see the RC_BITBLT raster capability in the member function CDC::GetDeviceCaps.
CDC Overview | Class Members | Hierarchy Chart
See Also CDC::CDC, CDC::GetDeviceCaps, ::CreateCompatibleDC, CDC::BitBlt, CDC::CreateDC, CDC::CreateIC, CDC::DeleteDC