|
-
Aug 1st, 2001, 08:09 PM
#1
Thread Starter
New Member
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 *****.
-
Aug 2nd, 2001, 02:52 AM
#2
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|