;===================================================================; ; Functions ; ;===================================================================; Func DCConstructor(ByRef $HDC, $WindowTitle = "") #CS HDC GetDC( HWND hWnd // handle to window ); #CE Local $HWND If $WindowTitle = "" Then $HWND = 0 Else $HWND = WinGetHandle($WindowTitle) EndIf $HDC = DllCall("user32.dll", "int", "GetDC", "hwnd", $HWND) $HDC = $HDC[0] EndFunc;==>DCConstructor ;