Click to See Complete Forum and Search --> : Virtual Trackpad Scrolling in WinAPI?


Metabolo
June 9th, 2004, 09:24 PM
:wave: I am developing a pure WinAPI application that uses custom-drawn scroll bars. Everything works great, except that it recently came to my attention that many laptops support a feature called "virtual scrolling", a shorthand scrolling technique supported by many trackpads.

I turned on "use virtual scrolling" on my laptop's trackpad driver and was able to use it in a number of Windows applications, all of which use standard Windows scrollbars (Internet Explorer, Windows Media, Microsoft Word, Visual Studio, etc.). In each case, I attached Spy++ to these windows and they appear to be getting all the WM_VSCROLL and WM_HSCROLL messages one would expect.

However, attaching Spy to my application's window reveals that all I'm getting are mouse wheel messages. :ehh:

Does anyone know how I can get Windows to send me these messages?

Your help would be MUCH appreciated,
RR

F.Y.I. ++ I built two test apps, one in MFC and the other in pure WinAPI, that would scroll a bitmap using standard scroll bars, and oddly the MFC app worked with virtual scrolling while the WinAPI one didn't! Is there a hidden trick in MFC that takes care of this? (I searched the MFC source and didn't find anything that looked like it did this.) I also tried adding dummy scrollbars to my window, just to see if this would clue Windows in to the fact that my window wants scroll messages.