Re: TreeView label editing
Andrew Grant <[email protected]> Fri, 6 Jul 2007 10:24:33 +0100
| Newsgroups | gmane.games.devel.windows |
|---|---|
| Message-ID | <495A161B83F7544AA943600A98833B530CE794B3@mimas.fareham.climax.co.uk> |
What do you return from TVN_BEGINLABELEDIT? Is your TreeView part of a dialog form, or created dynamically on another Window? A. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Pierre Terdiman Sent: Thursday, July 05, 2007 7:47 AM To: Game Development for MS Windows Subject: [GD-Windows] TreeView label editing 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.0/887 - Release Date: 7/5/2007 1:55 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.0/887 - Release Date: 7/5/2007 1:55 PM ------------------------------------------------------------------------- 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