To Remove node using delete key
-
Hi, When I press delete key, I want to delete the selected node from the tree control in the sdi application. Do I need to use keyboard accelarator? How do I do it? any example? Also, I want to popup a dialog which says Do you want to delete the selected node with yes and no option. Is there any custom way to achieve this? Please Help! Thanks in advance
-
Hi, When I press delete key, I want to delete the selected node from the tree control in the sdi application. Do I need to use keyboard accelarator? How do I do it? any example? Also, I want to popup a dialog which says Do you want to delete the selected node with yes and no option. Is there any custom way to achieve this? Please Help! Thanks in advance
Handle the
TVN_KEYDOWN
notification and look for a keycode ofVK_DELETE
. For the yes/no prompt, useMessageBox()
--Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber CP SearchBar v2.0.2 released -
Handle the
TVN_KEYDOWN
notification and look for a keycode ofVK_DELETE
. For the yes/no prompt, useMessageBox()
--Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber CP SearchBar v2.0.2 releasedHi Thanks for your reply. Can you explain a little more detail please. 1. Where do I handle The TVN_KEYDOWN notification. I have a formview and added the tree controls in that view. 2. MessageBox has following syntax from msdn, where is the option to add yes and no button? MessageBox( LPCTSTR lpszText, LPCTSTR lpszCaption = NULL, UINT nType = MB_OK ); please help