Editing treeview in win32 dialog closes dialog
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi Here is my problem: I have a Win32 application (no MFC) and want to allow the user to edit some options in a treeview inside a dialog. But when the user edits an option in the treeview, the dialog closes as soon as a key is pressed. The treeview has EDITLABELS on, it is possible to begin editing (TVN_BEGINLABELEDIT Notify is sent to the dialog) but as soon as an editing key (letters, numbers but not arrows)is pressed the dialog closes (TVN_ENDLABELEDIT is sent). And the application doesn't close. The solution is probably simple but I cannot see where the problem comes from. Any help would be great. Thank you in advance Ben.