Hello, all!
The problem is:
I have a [tt]CTreeCtrl[/tt] tree with 2 levels of elements. I want a dialog to be opened after a double click on one of the tree-elements performes. So I used [tt]NM_DBLCLK[/tt] message. I works all OK, but if a double click performes on an element with a subelement, so after the dialog is closed the element toggles its state. i.e. opens the sub tree if it was closed and closes if it was opened. How can I prevent that? I mean that a subtree shouldn't open after a double click.
The problem is:
I have a [tt]CTreeCtrl[/tt] tree with 2 levels of elements. I want a dialog to be opened after a double click on one of the tree-elements performes. So I used [tt]NM_DBLCLK[/tt] message. I works all OK, but if a double click performes on an element with a subelement, so after the dialog is closed the element toggles its state. i.e. opens the sub tree if it was closed and closes if it was opened. How can I prevent that? I mean that a subtree shouldn't open after a double click.