UDF > WinAPIEx > GDI > DeviceContext >


_WinAPI_ReleaseDC

Lib�re un contexte de p�riph�rique

#include <WinAPIGdiDC.au3>
_WinAPI_ReleaseDC ( $hWnd, $hDC )

Param�tres

$hWnd Handle de fen�tre
$hDC Identifie le contexte de p�riph�rique � lib�rer

Valeur de retour

Succ�s: Retourne True
�chec: Retourne False

Remarque

L'application doit appeler la fonction _WinAPI_ReleaseDC() pour chaque appel de la fonction _WinAPI_GetWindowDC() et pour chaque appel de la fonction _WinAPI_GetDC() qui r�cup�re un contexte de p�riph�rique commun.

En relation

_WinAPI_DeleteDC, _WinAPI_GetDC, _WinAPI_GetWindowDC

Voir aussi

Consultez ReleaseDC dans la librairie MSDN.

Exemple

#include <MsgBoxConstants.au3>
#include <WinAPIGdiDC.au3>

Example()

Func Example()
    Local $hWnd, $hDC
    $hWnd = GUICreate("test")
    $hDC = _WinAPI_GetDC($hWnd)
    MsgBox($MB_SYSTEMMODAL, "Handle", "Display Device: " & $hDC)
    _WinAPI_ReleaseDC($hWnd, $hDC)
EndFunc   ;==>Example