Jump to content

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)


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

  • Recently Browsing   0 members

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