Jump to content
Sign in to follow this  

ControlTreeView(GetSelected) and GUICtrlTreeView_GetSelected not working, returning hex value

Recommended Posts


I have a tree view in Excel that was returning the correct index of a member using ControlTreeView($win, "", "[iD]", GetSelected) in Excel 2007 and 2010.  However, in Excel 2013, it's not working at all.  So I tried GUICtrlTreeView_GetSelected and it is returning a hex value!

In older versions of Excel I got an orderly "#0|#3" (for example).  In Excel 2013 I get "0x15483621" or something.  Any experience with this?  It's a custom Excel extension that displays a tree.

Local $sel_ref = ControlTreeView($hwin, "", "[ID:1927]", "GetSelected", 1)
Local $handle01 = ControlGetHandle($hwin, "", "[ID:1927]")
Local $sel_ref = _GUICtrlTreeView_GetSelection($handle01)


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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.