|
-
May 1st, 2000, 01:45 PM
#1
Thread Starter
New Member
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
-
May 3rd, 2000, 02:19 AM
#2
Lively Member
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
-
May 4th, 2000, 09:34 PM
#3
Thread Starter
New Member
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?
-
May 4th, 2000, 09:53 PM
#4
Lively Member
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
-
May 6th, 2000, 12:45 PM
#5
Thread Starter
New Member
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
|