Results 1 to 3 of 3

Thread: FindChild.....

  1. #1
    Zambi
    Guest
    What is the delaration syntax for the findchildbyclass funcxtion???????? Can someone please tell me

  2. #2
    Zambi
    Guest

    another

    Can i also know the declaration syntax for the findchildbytitle function

  3. #3
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    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
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

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