|
-
May 1st, 2000, 02:07 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
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
|