WTL :: CSplitterWindow и WTL :: CPaneContainer не пересылают сообщения WM_KEYxxx и WM_MOUSExxx своему родителю.
Получите ваше EditorWindow из WTL :: CSplitterWindowImpl и ваши панели из WTL :: CPaneContainerImpl, например:
class CMyPaneContainer : public CPaneContainerImpl<CMyPaneContainer>
{
public:
DECLARE_WND_CLASS_EX(_T("MyPaneContainer"), 0, -1)
BEGIN_MSG_MAP(CMyPaneContainer)
MESSAGE_RANGE_HANDLER(WM_KEYFIRST, WM_KEYLAST, OnForward)
MESSAGE_RANGE_HANDLER(WM_MOUSEFIRST, WM_MOUSELAST, OnForward)
CHAIN_MSG_MAP(CPaneContainerImpl<CMyPaneContainer>)
END_MSG_MAP()
LRESULT OnForward(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
if (uMsg == WM_MOUSEWHEEL)
return bHandled = FALSE; // Don't forward WM_MOUSEWHEEL
return GetParent().SendMessage(uMsg, wParam, lParam);
}
};
class EditorWindow : public CSplitterWindowImpl<EditorWindow, true, CWindow/*DxWindow*/>
{
typedef CSplitterWindowImpl<EditorWindow, true, CWindow/*DxWindow*/> baseClass;
public:
CMyPaneContainer m_lPane;
CMyPaneContainer m_rPane;
//PropertyDialog m_propertyWnd;
DECLARE_WND_CLASS(_T("Specific_Class_Name"))
BEGIN_MSG_MAP(EditorWindow)
MESSAGE_HANDLER(WM_CREATE, OnCreate)
MESSAGE_HANDLER(WM_LBUTTONDOWN, KeyHandler)
MESSAGE_HANDLER(WM_KEYUP, KeyHandler)
CHAIN_MSG_MAP(baseClass)
END_MSG_MAP()
LRESULT OnCreate(UINT, WPARAM, LPARAM, BOOL&)
{
m_lPane.Create(m_hWnd);
m_lPane.SetTitle(L"Left Pane");
m_rPane.Create(m_hWnd);
m_rPane.SetTitle(L"Properties");
//m_propertyWnd.Create(m_rPane.m_hWnd);
SetSplitterPosPct(70); // 70% from left
SetSplitterPanes(m_lPane, m_rPane);
return 0;
}