Most of this discussion revolves around default MFC code from CodeWizard. I created an MFC project with a Visual Studio 2008 style.

There is a class derived from CTreeCtrl. The class is called CViewTree (not the "CTreeView" class). They created this derived CTreeCtrl class to handle a TTN_SHOW message for tooltips in its OnNotify message handler.

The CViewTree class is instantiated in a DockablePane class called CFileView. I'd like the CFileView class to receive message from the CViewTree class and process them for the "FIleView". The CViewTree class has access to the click and double click messages from the CTreeCtrl but the CFile Class does not appear to have this access.

What approach is used to handle this communication in applications that have this type of left hand FileView interface? How can I get a double click on the tree and handle in CFileView?

class CViewTree : public CTreeCtrl
{
// Construction
public:
CViewTree();

// Overrides
protected:
virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);

// Implementation
public:
virtual ~CViewTree();

protected:
DECLARE_MESSAGE_MAP()
};

class CFileView : public CDockablePane
{
// Construction
public:
CFileView();

void AdjustLayout();
void OnChangeVisualStyle();

// Attributes
protected:

CViewTree m_wndFileView;
CImageList m_FileViewImages;
CFileViewToolBar m_wndToolBar;

protected:
void FillFileView();

// Implementation
public:
virtual ~CFileView();

protected:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnProperties();
afx_msg void OnFileOpen();
afx_msg void OnFileOpenWith();
afx_msg void OnDummyCompile();
afx_msg void OnEditCut();
afx_msg void OnEditCopy();
afx_msg void OnEditClear();
afx_msg void OnPaint();
afx_msg void OnSetFocus(CWnd* pOldWnd);

DECLARE_MESSAGE_MAP()
};