Jump to content

Recommended Posts

Posted

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

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...