Results 1 to 5 of 5

Thread: Control handle under IE...

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Posts
    5
    Hi to all the VB coders,

    I'm having the problem in returning the control's handle under the IE 4.x. What I mean here is, I cannot get the text box handle by using the WindowFromPoint (POINTAPI) API functions to return the handle. When I surf to the page that contains text box like http://www.yahoo.com, I put my mouse cursor on the text box, nothing returned. But if I'm using Netscape Comm/Nav X.xx it works ok, I can get the handle... ... My question here is, How can I get the handle of a control object that under the IE? Or could you please help, see whether I'm doing wrong or did I miss something in my code? Bellow are the coding:

    Private Type POINTAPI
    X As Long
    Y As Long
    End Type

    Private Declare Function WindowFromPoint Lib "user32.dll" (ByVal xPoint As Long, ByVal yPoint As Long) As Long
    Private Declare Function GetCursorPos Lib "User32" (lpPoint As POINTAPI) As Long


    Private Sub Timer1_Timer()

    Dim CursorPos As POINTAPI, hWnd As Long

    Call GetCursorPos(CursorPos)
    hWnd = WindowFromPoint(CursorPos.X, CursorPos.Y)

    label1 = hWnd
    End Sub


    EnumWindows I aslo tried, still can't get the text box handle... ...
    Thank you kindly for spending your time on reading my quetions and sorry for my bad English

  2. #2
    Lively Member
    Join Date
    Apr 2000
    Location
    Hell
    Posts
    89
    Might I ask...just what control you are referring to? We aren't mind readers, you know.
    - Steve

    Real programmers use COPY CON PROGRAM.EXE

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Posts
    5

    Text box handle

    Originally posted by Stevie-O
    Might I ask...just what control you are referring to? We aren't mind readers, you know.
    What I want to know is, how can I get the handle of the text boxes that are undle the IE, Try the API SPY tools that are available on the net. See whether you can get the handle or not, if can't, How?

  4. #4
    Lively Member
    Join Date
    Apr 2000
    Location
    Hell
    Posts
    89
    They don't HAVE handles.
    They're what Microsoft calls 'windowless' or 'lightweight' ActiveX controls. They look like regular edit boxes/buttons, and they behave much like them, but they aren't.
    - Steve

    Real programmers use COPY CON PROGRAM.EXE

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Posts
    5
    So, I guess that's mean *NO WAY* to get the handle rigth? Well, anyway, thanx for your help Bye

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