Sign in to follow this  
Followers 0
Angel

GUICtrlGetData

2 posts in this topic

Hi,

we have a GUICtrlSetData that we can use to set the text in an edit or input box or to set the elements of a combo box. But do we have a mean to get the elements of a combo box? I don't think that there is a GUICtrlGetData or something equivalent.

Did I miss something?

Angel

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Use this:

$CB_GETCOUNT = 0x00000146
$Count = GUISendMsg($combo, $CB_GETCOUNT, 0, 0)

Replace $combo with the variable you gave the combo control.

The Windows API has many features and functions.

You access some of them using the GUISendMsg() function.

There are 2 websites you need to retrieve info with GUISendMsg.

MSDN - Windows Controls and the hex values of the API variables, here

Edited by SlimShady

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