I've created a simple MFC MDI application. Then I've created a DLL which implements a simple window (inherited from CWnd
). I want it to be a child of CView
window in my application. So when the application starts and the view is created I create my window passing a handle of CView
as a parent.
It works fine except for the mouse wheel issue: the focus is on the CView
window (though my window covers the entire client area) and thus my window doesn't receive WM_MOUSEWHEEL
messages.
SetFocus()
after the creation doesn't help.
Is there any correct way other than subclassing/hooking the parent to fix it? And I want it to be done in DLL.
P.S. My window is for OpenGL rendering and I want it to be as much self-sufficient as possible.