vb6 scroll bars windows api no longer works under windows 7

I have been using a class moduel from the website vbAccelerator.com which is fantastic at putting a scroll bar onto a Visual Basic form.
This code no longer works under windows 7 32bit.   I have tried running in compatability mode of windows xp.

I have attached a sample project the line where it falls over is AttachMessage Me, m_hWnd, WM_HSCROLL inside the pAttachMessages function.  I have only ever done basic api calls but cant even find any info relating to attachmessage

I am wondering if this is easy to fix.
project.zip
Jenny CoulthardInformation Technology ManagerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CSI-Windows_comCommented:
I suspect this may be using window messaging to monitor controls.  If so, this would be blocked by a Windows 7 feature known as User Interface Process Isolation (UIPI).

The only way to open it up without disabling UAC is to use AppCompat to allow specific messages to pass.
eemitCommented:
I am wondering if this is easy to fix
Yes,
This Class (cScrollBars.cls from your project) requires:
isubclass.cls and
subclass.bas
from vbAccelerator.com

I've attached the modified project below.
ScrollBarsApi-project.zip

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Martin LissOlder than dirtCommented:
You don't need to use APIs.Scroll-Form.zip
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Jenny CoulthardInformation Technology ManagerAuthor Commented:
Wow, I have to say I love this web-site.  I am supporting legacy code and when I came across this problem with running vb code on windows7 I thought I was in trouble, after wasting yesterday I asked the question and overnight I have two solutions both of which work.  I am accepting eemits answer as it uses the same vbAccelerator.com code I already have in my projects.  
thanks you for providing a working project.
I understand now that I can use the two subclass modules to replace the ssubtmr.dll.  And also found the attachmessage sub in these subclass modules.
thank you
Jenny CoulthardInformation Technology ManagerAuthor Commented:
excellent response, complete project
Martin LissOlder than dirtCommented:
Not even a little taste? ;)
eemitCommented:
Thanks purbrick,
I'm glad I was able to help.
Jenny CoulthardInformation Technology ManagerAuthor Commented:
lol MartinLiss.  Normally I do share the points/love around but today I didnt.  I was too excited about the lack of work I needed to do to get exe up and running.
Martin LissOlder than dirtCommented:
If eemit didn't mind you could ask for admin assistance, but no big deal.
eemitCommented:
OK, but does not have to be fifty fifty :-)
Martin LissOlder than dirtCommented:
I don't need 50/50.
Jenny CoulthardInformation Technology ManagerAuthor Commented:
OK, so I can ask admin assistance to change to 20/80 but I am actually not sure how to do this.
Martin LissOlder than dirtCommented:
I clicked the 'Request attention' link and asked the moderators to help you do it.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.