Function Reference


_WinAPI_CreateCompatibleDC

Creates a memory device context compatible with the specified device

#include <WinAPIGdiDC.au3>
_WinAPI_CreateCompatibleDC ( $hDC )

Parameters

$hDC Handle to an existing DC. If this handle is 0, the function creates a memory DC compatible with the application's current screen.

Return Value

Success: Handle to a memory DC
Failure: 0

Remarks

When you no longer need the memory DC, call the _WinAPI_DeleteDC() function

Related

_WinAPI_DeleteDC

See Also

Search CreateCompatibleDC in MSDN Library.