divya_rathore
2011-06-15 23:12:20 UTC
Scenario:
In an MDI environment, I need to send the mouse events (OnLButtonDown/
Up, MouseMove etc.) performed on an MDI child window to a dll. What
would be the best way to achieve this?
Is creating a function (whose arguments are same as OnLButtonDown/Up,
MouseMove etc.) in the dll and calling it in the app's view (in
OnLButtonDown) using GetProcAddress an ideal way of doing this?
Or are there some more apt ways of doing this? Has hooking anything to
do with what I intend to do (here's Joe's article on hooking:
http://www.codeproject.com/KB/DLL/hooks.aspx)?
In an MDI environment, I need to send the mouse events (OnLButtonDown/
Up, MouseMove etc.) performed on an MDI child window to a dll. What
would be the best way to achieve this?
Is creating a function (whose arguments are same as OnLButtonDown/Up,
MouseMove etc.) in the dll and calling it in the app's view (in
OnLButtonDown) using GetProcAddress an ideal way of doing this?
Or are there some more apt ways of doing this? Has hooking anything to
do with what I intend to do (here's Joe's article on hooking:
http://www.codeproject.com/KB/DLL/hooks.aspx)?