Jump to content

help with function from dll


tamir
 Share

Recommended Posts

it's the first time i try to use a function from dll with DllCall.

i try to create a rich edit control using the CreateWindowEx from the msftedit.dll (u can get it here).

here's the syntax of it:

HWND CreateWindowEx(          DWORD dwExStyle,
    LPCTSTR lpClassName,
    LPCTSTR lpWindowName,
    DWORD dwStyle,
    int x,
    int y,
    int nWidth,
    int nHeight,
    HWND hWndParent,
    HMENU hMenu,
    HINSTANCE hInstance,
    LPVOID lpParam
);

the classname of the rich edit is RICHEDIT_CLASS

if u want more info about it go here.

but since it's my 1st time i couldn't create it :/

can some1 try and give me and example plz?

Link to comment
Share on other sites

Nah Larry, getting the HINSTANCE is easy. Should be able to call GetWindowLong(hWnd, GWL_HINSTANCE) on AutoIt's hidden window or the parent GUI window to the control. I'm not sure if an HISTANCE is totally necessary anyway.

As you said, though, the real problem is interacting with it. Edit controls don't seem to use structures but Rich Edit controls do.

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...