TreeView label editing

"Pierre Terdiman" <[email protected]> Thu, 5 Jul 2007 16:47:28 +0200
Newsgroups gmane.games.devel.windows
Message-ID <[email protected]>
Ok, I have another treeview question, about label editing. So I'm trying to
let the user change the label of a treeview item by double-clicking on it.
My problem is that no edit box ever shows up, even though I receive the
expected messages.

So it's like this:

- the treeview is created with TVS_EDITLABELS
- when user double-click on an item I call TreeView_EditLabel
- then I correctly receive the TVN_BEGINLABELEDIT and TVN_ENDLABELEDIT. In
the first one I can catch the edit control handle using
TreeView_GetEditControl, which returns a valid handle.

Yet no edition ever happens. I receive the TVN_ENDLABELEDIT notification
immediately after the TVN_BEGINLABELEDIT one, and the text in the associated
structure is null.

What did I miss? I browsed the net in vain. I can't find a single example
clearly showing me how to do that. The MSDN didn't help much either.

Thanks,
- Pierre


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555