MouseWheel.dll Problem

  • Thread starter Thread starter Arvin Meyer
  • Start date Start date
A

Arvin Meyer

References are set on a per database basis. Certain references like the
Access library and the Office library must match the version being used to
run the database. If I remember correctly, Stephen Lebans has a new version
(7/03) out that doesn't require registering the dll.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 
Hi, I successfully use MouseWheel.dll to disable the mouse wheel button in
some of my forms, but there is one problem however. If I set a reference to
that library in Access 2000, it does not work in Access 2002. To make it
work in Access 2002, I have to set that reference in 2002 environment. Is it
any way to make it work in both versions.

Thank in advance,
AK
 
A2K and higher natively supports AddressOf. Look it up in help to see
how to use the function.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Wait a minute, the subclassing code is encapsulated within the DLL
therefore you should never see it!
Are you trying to use the subclassing code inline so that you do not
have to use the DLL? You just cannot do that in A2K or higher due to a
Bug between Access and IDE.
Just whose code are you using here?
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Thanks for the tip but what should I do with the AddrOf ("IMWheel")? Is was
written for Access 97. How to modify the function below for Access 2000?

Public Function IMWheel_Hook() As Long
'Register a custom callback message when the wheel moves
IMWHEEL_MSG = RegisterWindowMessage(MSH_MOUSEWHEEL)
HWND_HOOK = SetWindowsHookEx(WH_GETMESSAGE, AddrOf("IMWheel"), 0, _
GetCurrentThreadId)
End Function
 
I replaced AddrOf("IMWheel") with AddressOf IMWheel but the form
hangs up each time I try to run it.
 
W\That code is outdated and for A97 only. Go to my site and download the
latest version.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
I use code from http://www.mvps.org/access .

Stephen Lebans said:
Wait a minute, the subclassing code is encapsulated within the DLL
therefore you should never see it!
Are you trying to use the subclassing code inline so that you do not
have to use the DLL? You just cannot do that in A2K or higher due to a
Bug between Access and IDE.
Just whose code are you using here?
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Back
Top