MouseWheel.dll Problem

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
 
A

Anatoly Kurilin

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
 
A

Anatoly Kurilin

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
 
A

Anatoly Kurilin

I replaced AddrOf("IMWheel") with AddressOf IMWheel but the form
hangs up each time I try to run it.
 
A

Anatoly Kurilin

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top