Jump to content

understanding controlID vs handle


Burgaud
 Share

Recommended Posts

$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?

 

Link to comment
Share on other sites

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!

Link to comment
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
 Share

  • Recently Browsing   0 members

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