I'm trying to compile this code:
Code: Select all
IGUITreeViewNode *n = (IGUITreeViewNode *)evt.GUIEvent.Caller;
Tag *c = (Tag *)n->getData();
Any tips or solutions?
Thanks a lot.
-- Edit --
I checked the API a bit and realized that IGUITreeViewNode is not actually an IGUIElement, so I have to use IGUITreeView::getLastEventNode() to get the pointer to the event node.