[RESOLVED] Wheelmouse scroll MDI application child forms
Bushmobile or anyone who can help?
Bushmobile posted code in the codebank for setting up the wheelmouse to scroll withn an applcation.
Attached is a shell of an MDI application.
The wheelmouse scrolls beautifully in the first opened child form but then the application terminates itself and shuts down vb as soon as a new child form is opened which is preventing me from using it.
Can anyone give me a suggestion or a fix?
Last edited by sgrya1; Dec 29th, 2006 at 05:02 PM.
Longwolf, I can't find the reference you talked about on planet source code. Or not quite sure what I'm was looking for but your post explained what I needed to do.
I needed to unhook the current form and hook the next one.
VB Code:
Private Sub MNUNew_Click()
Dim fForm As Form1
Set fForm = New Form1
Call WheelUnHook
fForm.Show
Call WheelHook(fForm)
End Sub
I've read that the code I'm using is slightly unstable as if you press stop on the project, the wheelmouse doesn't unhook and VB shuts down. As far as I understand it anyway.
The "safe" subclassing code may be the answer. If you can post a link that would be great but you've been helpful with what you posted already.
I just tried to open three forms. The first and third form scroll but the second one has decided to unhook.
Any suggestions on how I unhook a form when goes to the background and hook another on it's selection?