Jump to content

something about WIN32API


Recommended Posts

C++

1,SelectObject(hdc,   GetStockObject(NULL_BRUSH));   //   或者HOLLOW_BRUSH   
2,Ellipse(hdc,   0,   0,   300,200);

This is a C code.

=========

How to change it's first line to a AU3 code?

AU3

1,????
2,DllCall("GDI32.dll", "int", "Ellipse", "hwnd", $hdc[0],"int", 0, "int",0, "int",300, "int", 200)

Maybe something like this??

DllCall("GDI32.dll", "int", "SelectObject", "hwnd", $hdc[0],"hwnd", 0)

?

****EIDT:***

Solved~

DllCall("GDI32.dll", "int", "SelectObject", "hwnd", $hdc[0],"hwnd", $hdc1[0])

Edited by AU3Newbie
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...