Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Horizontal Mouse Wheel support request
Re: Horizontal Mouse Wheel support request [message #60443 is a reply to message #60405] Wed, 24 January 2024 13:51 Go to previous messageGo to previous message
Tom1
Messages: 1303
Registered: March 2007
Ultimate Contributor
Hi Again,

Due to the fact that with a regular mouse the horizontal wheel scrolling is commonly simulated through 'Shift + Mouse Wheel' I decided to introduce a simpler lightweight implementation for Horizontal Mouse Wheel support in Windows. It requires only minimal changes in CtrlCore/Win32Proc.cpp, which you can find attached. (No changes at all in CtrlCore.h or CtrlMouse.cpp, like in the previous solution.)

So, there is no added MouseWheelHor() method, but instead the horizontal wheel comes in through regular MouseWheel() with keyflags |= K_SHIFT, which is the common horizontal wheel simulation solution anyway. Therefore, both simulated and real horizontal wheel events become available in MouseWheel().

NOTE: The attached CtrlCore/Win32Proc.cpp also attempts to fix a touch screen issue with Pen aware apps by slightly adjusting the Pen detection mask. This is based on pen/touch differentiation as per:

https://learn.microsoft.com/en-us/windows/win32/tablet/syste m-events-and-mouse-messages?redirectedfrom=MSDN

Best regards,

Tom
  • Attachment: Win32Proc.cpp
    (Size: 20.45KB, Downloaded 1272 times)

[Updated on: Thu, 25 January 2024 09:00]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: Outdated tools in Windows package
Next Topic: Fastest way to capture control as image
Goto Forum:
  


Current Time: Tue May 13 20:43:41 CEST 2025

Total time taken to generate the page: 0.02817 seconds