tamir Posted February 10, 2005 Share Posted February 10, 2005 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_CLASSif 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 More sharing options...
tamir Posted February 10, 2005 Author Share Posted February 10, 2005 oh thought this would be my solution to the styles such as colors in edit control Link to comment Share on other sites More sharing options...
Valik Posted February 10, 2005 Share Posted February 10, 2005 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 More sharing options...
tamir Posted February 11, 2005 Author Share Posted February 11, 2005 hmm i can't seem to manage calling any function i tried to call DlgDirList from the user32.dll file but it also didn't work please someone, try to call it, and if u can't please give me an example of another function of ur choice Link to comment Share on other sites More sharing options...
tamir Posted February 11, 2005 Author Share Posted February 11, 2005 thanks! i guess i didn't use the right type of the parameter :/ i hope i'll succeed with the next functions Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now