Sign in to follow this  
Followers 0
Guest Zico

Problem getting ListBox Handle

2 posts in this topic

Hi,

I have a C++ program that uses WxWidgets to create GUIs, ListBoxes etc. I have a main window, and within that window I have 3 List Boxes.

I can successfully use the WinGetHandle procedure to get the handle of the main Window, but I need to get the handle of the Controls within that window, i.e. the List Boxes.

For some reason, the following call in my script comes back blank :-

Local $hWnd = WinGetHandle("[CLASS:ListBox; INSTANCE:3]")

yet the AU3Info program can see the handles for the List Box Controls.

Am I doing something wrong? Any ideas anyone? Any help greatly appreciated.

Regards,

Zico

Share this post


Link to post
Share on other sites



Hi,

I have a C++ program that uses WxWidgets to create GUIs, ListBoxes etc. I have a main window, and within that window I have 3 List Boxes.

I can successfully use the WinGetHandle procedure to get the handle of the main Window, but I need to get the handle of the Controls within that window, i.e. the List Boxes.

For some reason, the following call in my script comes back blank :-

Local $hWnd = WinGetHandle("[CLASS:ListBox; INSTANCE:3]")

yet the AU3Info program can see the handles for the List Box Controls.

Am I doing something wrong? Any ideas anyone? Any help greatly appreciated.

Regards,

Zico

Answered in your other topic... please don't double post.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0