CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2000
    Posts
    1

    Internet Control & API

    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


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Internet Control & API

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured