|
-
Apr 3rd, 2001, 08:10 PM
#1
What is the delaration syntax for the findchildbyclass funcxtion???????? Can someone please tell me
-
Apr 3rd, 2001, 08:41 PM
#2
another
Can i also know the declaration syntax for the findchildbytitle function
-
Apr 3rd, 2001, 10:15 PM
#3
You are in luck. They are the same function.
Declare Function FindWindowEx& Lib "user32" Alias "FindWindowExA" (ByVal _
hWndParent As Long, ByVal hWndChildAfter As Long, ByVal lpClassName As String, _
ByVal lpWindowName As String)
to search by windowname, set lpclassname to vbnullchar
to search by classname, set lpwindowname to vbnullchar
if you set them both to null, it returns all child windows.
pseudo example:
hwnd = findwindowex(parent's hwnd, last found hwnd, vbnullchar, vbnullchar)
actual code:
do
hwnd = findwindowex(me.hwnd, hwnd, vbnullchar, vbnullchar)
if hwnd > 0 then msgbox hwnd
loop until hwnd = 0
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
|