Print Page | Close Window

Propagating WM_MOUSESCROLL to report control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=15526
Printed Date: 08 September 2025 at 7:41pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Propagating WM_MOUSESCROLL to report control
Posted By: znakeeye
Subject: Propagating WM_MOUSESCROLL to report control
Date 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://blogs.msdn.com/oldnewthing/archive/2008/08/06/8835316.aspx
http://msdn.microsoft.com/en-us/library/ms645601%28VS.85%29.aspx#_win32_The_WM_MOUSEWHEEL_Message - 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/



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net