vbMike
February 10th, 2000, 12:36 AM
I'm having trouble trying to pass the handle of my internet control
to an API function. Intellisense for my internet control brings up the
handle HWND for all other controls it's hWnd. What if anything is the difference?
Thanks
Chris Eastwood
February 10th, 2000, 03:07 AM
The INET control is a 'hidden' control (most likely just a bunch of api calls into the WinInet DLL) - I couldn't see (and didn't expect) a 'HWND' property as you stated in your post.
An HWND is a 'handle to a window' (a 'long' value) - this is assigned by the OS as soon as the 'window' is created. As the Inet control is a window-less control (just like the label control) it doesn't have one.
The Inet control does however return a 'hInternet' handle (I imagine this is the same as the 'hinternet' handles used in the WinInet DLL's).
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb