CTreeCtrl context menu and full row select

  • Thread starter Thread starter Mark Duffill
  • Start date Start date
M

Mark Duffill

Guest
Hi All,

I have my own tree control derived from CTreeCtrl which handles context menu (ON_WM_CONTEXTMENU).
This is hosted inside a CDockablePane and all works well, right click on a node and you get a context menu etc.

However if I bind it to a tree control on a dialog via DDX_Control when I right click I do not get a context menu.
Additionally if right click changes the selection, when you release the right button the selection then flicks back to the previous selection.

The call to my OnContextMenu() is not been invoked from what I can tell in the dialog case.

Any ideas what is trapping/re-directing my message? There are no handlers in the dialog either!

Note if I double right click I do get a context menu!

Lastly TVS_FULLROWSELECT does not work when I specify it in the style parameters for creating the control that is in the CDockable pane, but just fine on a dialog!

Thanks

Continue reading...
 
Back
Top