Re: [GD-Windows] TreeView label editing
Brought to you by:
vexxed72
From: Sander v. R. <san...@gm...> - 2007-07-05 14:52:44
|
if the text value is null then the edit is cancelled... probably because your breakpoint caused the edit box to lose focus and visual studio to gain focus... On 7/5/07, Pierre Terdiman <pte...@ag...> wrote: > 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 > |