Search the Community
Showing results for tags '_WinAPI_RedrawWindow win 8.1'.
Upgraded to Windows 8.1 and dual monitor. Have a program that uses _WinAPI_RedrawWindow that does not seem to work. Tried example in help file and it does not erase cross. See notation below. What am I doing wrong? (forgot how to include code in a separate window - sorry) #include <WindowsConstants.au3> #include <WinAPI.au3> ShowCross(@DesktopWidth / 2, @DesktopHeight / 2, 20, 2, 0xFF, 3000) Func ShowCross($start_x, $start_y, $length, $width, $color, $time) Local $hDC, $hPen, $obj_orig $hDC = _WinAPI_GetWindowDC(0) ; DC of entire screen (desktop) $hPen