How to catch WM_MBUTTONDOWN in CTreeControl

105 Views Asked by At

I have a window with CTreeControl. I am able to catch WM_MBUTTONDOWN event in area of window (ON_WM_MBUTTONDOWN macro), but not in area of CTreeControl. Is some way to catch this event for CTreeControl? Thanks.

1

There are 1 best solutions below

0
Minxin Yu - MSFT On

You could create a MFC class that inherits from CTreeCtrl and then create WM_MBUTTONDOWN from the class wizard.

enter image description here