Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Propagating WM_MOUSESCROLL to report control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Propagating WM_MOUSESCROLL to report control

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Propagating WM_MOUSESCROLL to report control
    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?
 
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/
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.