Ok, first of all a little background:
I have mdi setup this is something similar to how a normal graphics program has their MDI setup(ex: paintshoppro, photoshop)... ok now I need a Mouse Subclass hook, I know nothing about them really, to catch the scroll wheel. but it needs to be individual to each child that is created. The scroll wheel is to zoom... so I have some code that contains:
VB Code:
Public Function WindProc(ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long On Error Resume Next If wMsg = WM_MOUSEWHEEL Then If HiWord(wParam) < 0 Then MsgBox "here1" Else MsgBox "here2" End If End If WindProc = CallWindowProc(WndProcOld&, hwnd&, wMsg&, wParam&, lParam&) End Function
this was found at an example on here, but it seems difficult to do it because this sub is called from... hmm actually I dont know where because I dont understand subhooking very well...
but where ever it gets called from.... I dont know how to do this for the MDICHILD ... and basically I dont care how it gets done I just need the public variable "zoom" on the MDICHILD to change according to which way the scrollwheel is going, if you need more information to help me... no problem but please help because this sub classing/hooking confuses me.
-SpeedyDog




Reply With Quote