Jump to content
Sign in to follow this  
Burgaud

understanding controlID vs handle

Recommended Posts

Burgaud
$cListView = GUICtrlCreateListView("Column 1|Column 2|Column 3", 5,   2, 590, 200, -1, BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT))
$hListView = GUICtrlGetHandle($cListView)

$cListView is a controlID

$hListView is a handle

what and how are they different? and why must they be separate/different?

are they array? pointer? pointer to a pointer?

 

Share this post


Link to post
Share on other sites
Burgaud

If I understand it correctly:

ControlIDs are index to an array of handles, while handle points to the actual data structure. (more or less).

If there is a GUICtrlGetHandle function, is there a reverse of it? (though not sure If I need it).

; Check handle
If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd)
If Not IsHWnd($hWnd) Then

 

thanks!

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  

×