|
-
Mar 29th, 2001, 05:21 PM
#1
Thread Starter
New Member
Hi, im sorry for bothering you but im trying to subclass and im stuck on the SetWindowLong function of the Win32API and wanted to ask you a question.
Im trying to get the address of the windows procedure back from the function by passing a handle to an internet explorer object which I have created through adding a reference to a VB project.
I have read in the Microsoft documentation that if you are trying to use the setwindowlong function with a handle to an object outside of the calling process (in another thread) then it wont work and indeed this is what is happenning (im getting 0 back).
Is there a way out of this situation. Please help!
The setwindowlong line im calling is :-
lpPrevWndProc = SetWindowLongPtr(ie.hwnd, GWL_WNDPROC, AddressOf WindowProc)
The ie object does contain the handle to the internet explorer window, but 0 is returned instead of the windows procedure address.
-
Mar 29th, 2001, 05:53 PM
#2
You retrieved the handle of it like so: ie.hwnd. If IE an is object on your Form, then it should work, otherwise, if it's not in your thread, you need to place your routine in a standard DLL.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|