On Tue, 07 Dec 2004 03:19:51 GMT, "Scott Simonson"
<sc***********@wi.rr.com> wrote:
Does anyone have any idea why Access's module editor doesn't scroll with the
mouse. I noticed this behavor in Access 2k also. While viewing code in a
module (or any thing for that matter) the wheel mouse does not scroll the
window.
Scott
I use the scrollwheel fix from
http://www.joebott.com/vb6scrollwheel.htm
I was directed to this utility by Microsoft Support who could not
solve the problem. It works a treat!
It restores scolling in the VBE in A2K and above.
It does not work for A97 ;-(
From their site:-
How It Works:
Using Spy++, I found that the code windows were getting
WM_MOUSEWHEEL events, but no WM_VSCROLL messages were being fired. So,
I wrote a simple message hook that fires the scrolling events when it
catches mouse wheel events.
I know from Spy++ that the code window's class is "VbaWindow", so
I can use that to make sure that I only process those events. I just
use the GetClassName function on each message's HWND, and ignore
anything from anything but the VB6 code window.
Then, I just need to send WM_VSCROLL messages to the window. But
since the window's scrollbars have their own HWND, I need to find
those first. So, I use the FindWindow function to find child windows
with the class name "ScrollBar". If I find one, then I use
GetWindowLong to retrieve the window's style. If the style has the
SBS_VERT bit set, then I know I have the correct scrollbar. And that's
it in a nutshell!
Wayne Gillespie
Gosford NSW Australia