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