Results 1 to 2 of 2

Thread: Child Window Hwnd

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 1999
    Location
    ca, usa
    Posts
    91
    I am trying to get the handle of a child window, I can get the handle of a parent or reg window but I see that the api i use will not retrive a child window.

    Thanks,
    Jeremy
    [email protected]
    If its as simple as it sounds I guess I am not basic enough.

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    You can use the enumChildWindows API It'sin the API viewer, You need a callback function declare it like this

    Code:
    Public Function EnumFunction (ByVal hWnd as Long, ByVal lParam as Long) as Long
    
    'Put Code Here
    
    EnumFunction = True
    
    End Function

    when you call Enum Child Windows use AddressOf EnumFunction as lpEnumFunc and the function will call EnumFunction onc3e for each child window of the hWnd parameter with lParam set to the value of lParam in the callin function.

    Hope this helps.

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