Results 1 to 2 of 2

Thread: Same classname, different box accessing?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Location
    Libertyville, IL, soon to be Tucson, AZ
    Posts
    3

    Same classname, different box accessing?

    I am trying to access a form that has two listboxes on it, they both have the same classname (but obviously a different handle). They are indexed as "1" and "2", i am getting this number from a windows analyzer.. i dont know how to use it though, everytime I try to access the listboxes using FindWindowEx it grabs the first listbox (indexed as 1).. i need it to access #2, help?

    I have included the program i am using to get the information onj this post.
    If cat tasted like chicken, we'd all be eating *****.

  2. #2
    Fanatic Member Kaverin's Avatar
    Join Date
    Oct 2000
    Posts
    930
    Put the return of the first FindWindowEx use into the second param of another FindWindowEx call (I assume you're using Me.hWnd or yourform.hWnd for the parent), and you should get the hWnd of the other listbox.
    I'm baaaack...
    VB5 Professional Edition, VC++ 6
    Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se

    I feel special because I finally figured out how to loop midis: Post link
    I'm a fanatic too

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