Libère un contexte de périphérique
#include <WinAPIGdiDC.au3>
_WinAPI_ReleaseDC ( $hWnd, $hDC )
$hWnd | Handle de fenêtre |
$hDC | Identifie le contexte de périphérique à libérer |
Succès: | Retourne True |
Échec: | Retourne False |
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.
_WinAPI_DeleteDC, _WinAPI_GetDC, _WinAPI_GetWindowDC
Consultez ReleaseDC dans la librairie MSDN.
#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