CreateCompatibleDC

From aldeid
Jump to navigation Jump to search

Description

The CreateCompatibleDC function creates a memory device context (DC) compatible with the specified device.

Syntax

HDC CreateCompatibleDC(
  _In_  HDC hdc
);

Parameters

hdc [in]
A handle to an existing DC. If this handle is NULL, the function creates a memory DC compatible with the application's current screen.

Return value

If the function succeeds, the return value is the handle to a memory DC.

If the function fails, the return value is NULL.