CTreeCtrl selects item by itself!!!
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi :) I have a CTreeCtrl in a window which is the child window of another window (main window). When I deselect (with SelectItem(NULL)) my selection when my CTreeCtrl window has the focus, the result is as expected. However when I deselect my selection when the main window has the focus, my CTreeCtrl clears selection but sets the selection to the first visible item as soon as the window with the CTreeCtrl gets the focus again. Is this intended or a Windows bug? This is very annoying and I can't find a workaround :(( Anyone knows how to deal with this? By the way I set the option "Show selection always", so my problem isn't linked to that