Jump to content

Is there any examples about draw lines onto the current window?


Recommended Posts

what's wrong with my code?

Global $gdi_dll = DllOpen ("gdi32.dll"), $user32_dll = DllOpen ("user32.dll")

$hwnd=WinGetHandle("C:")

DllCall ($user32_dll,"int","GetDC","hwnd", $hwnd)

$BlackPen =DllCall ($gdi_dll, "hwnd", "CreatePen", "int", "0", "int", "3", "hwnd", "0x00000000"); large black pen

DllCall ($gdi_dll, "hwnd", "SelectObject", "hwnd", $hwnd, "hwnd", $BlackPen)

DllCall ($gdi_dll, "int", "MoveToEx", "hwnd", ($hwnd), "int", "0", "int", "0", "ptr", 0)

DllCall ($gdi_dll, "int", "LineTo", "hwnd",($hwnd), "int", "500", "int", "500")

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...