Propagating WM_MOUSESCROLL to report control |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 02 November 2009 at 7:48am |
Sometimes it is desirable to propagate the mouse wheel input to a child window that does not have focus. The naïve approach is to fetch WM_MOUSEWHEEL in the parent window and propagate it to the report control. This works until you close the window and get stuck in a never-ending message-loop! I sense I cannot get the desired behavior with CXTPReportControl. Since WM_MOUSEWHEEL is a bottom-to-top message, it cannot be used for this. I found another message, MSH_MOUSEWHEEL, that goes from top to bottom. Perhaps CXTPReportControl should handle this message?
http://blogs.msdn.com/oldnewthing/archive/2008/08/06/8835316.aspx
http://msdn.microsoft.com/en-us/library/ms645601(VS.85).aspx#_win32_The_WM_MOUSEWHEEL_Message Anyway, is it possible to accomplish the above? If I scroll inside another child of my parent window, I want to trigger the "mouse wheel" event in the child report control.
|
|
PokerMemento - http://www.pokermemento.com/
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |