Re: [GD-Windows] TreeView label editing
Brought to you by:
vexxed72
From: Andrew G. <ag...@cl...> - 2007-07-06 09:24:35
|
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: gam...@li... [mailto:gam...@li...] 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 Gam...@li... 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 |