Os
2006-04-21 15:21:59 UTC
There was a problem with mouse-scrolling listboxes on non-modal forms (no extra ActiveX controls
envolved!)(http://www.eggheadcafe.com/ng/microsoft.public.vb.winapi/post21996948.asp)
The solution (in case of modeless forms) is very simple, you should just add
Private Sub UserForm_Activate()
UserformHook ...........
End Sub
Private Sub UserForm_Deactivate()
UserformUnhook ............
End Sub
where UserformUnhook restores previously saved hook
this will remedy calling of WindowProc when form is not active - no more crashes, works smoothly
Actually now I just cannot imagine listboxes without mouse scrolling. How cool!
envolved!)(http://www.eggheadcafe.com/ng/microsoft.public.vb.winapi/post21996948.asp)
The solution (in case of modeless forms) is very simple, you should just add
Private Sub UserForm_Activate()
UserformHook ...........
End Sub
Private Sub UserForm_Deactivate()
UserformUnhook ............
End Sub
where UserformUnhook restores previously saved hook
this will remedy calling of WindowProc when form is not active - no more crashes, works smoothly
Actually now I just cannot imagine listboxes without mouse scrolling. How cool!