borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (COOL Job offers)Next Topic (adapting code for form 2.0) New Topic New Poll Post Reply
AndreaVB Forum : VB General : MsgHook.dll download? Solved Topic
Poster Message
luckyboy
Level: VB Lord

Registered: 05-05-2005
Posts: 160

icon MsgHook.dll download?

hi all. where i can download MsgHook.dll?
looking forward to hearing from you.

____________________________
Please help out.

04-05-2006 at 07:18 AM
View Profile Send Email to User Show All Posts | Quote Reply
GeoffS
Level: VB Lord


Registered: 29-09-2004
Posts: 536
icon Re: MsgHook.dll download?

Hi,
I think you will find what you are looking for here :-
http://www.vbaccelerator.com/home/VB/Code/Libraries/Hooks/vbAccelerator_Hook_Library/article.asp


____________________________
multi-tasking - the ability to hang more than one app. at the same time.

04-05-2006 at 08:28 AM
View Profile Send Email to User Show All Posts | Quote Reply
luckyboy
Level: VB Lord

Registered: 05-05-2005
Posts: 160
icon Re: MsgHook.dll download?

but i need Msghook. In order to make listview can not move pictures.

' REQUIRES THE MSGHOOK.DLL LIBRARY
Const WM_NOTIFY = &H4E
Const LVN_FIRST = -100&
Const LVN_BEGINDRAG = (LVN_FIRST - 9)

Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (dest As _
    Any, source As Any, ByVal bytes As Long)

Private Type NMHDR
   hwndFrom As Long
   idFrom As Long
   code As Long
End Type

Dim WithEvents FormHook As MsgHook

Private Sub Form_Load()
    ' start subclassing the current form
    Set FormHook = New MsgHook
    FormHook.StartSubclass Me

    ' fill the ListView1 control with data
    ' ... (omitted) ...
End Sub

' this event fires when the form is sent a message

Private Sub FormHook_BeforeMessage(uMsg As Long, wParam As Long, lParam As Long, _
    retValue As Long, Cancel As Boolean)
    
    ' the ListView might be notifying something to its parent form
    If uMsg = WM_NOTIFY Then
        ' copy the MNHDR structure pointed
        ' to by lParam to a local UDT
        Dim nmh As NMHDR
        CopyMemory nmh, ByVal lParam, Len(nmh)

        ' check whether the notification is from the ListView1 control
        ' and whether it's the beginning of a drag operation
        If nmh.hwndFrom = ListView1.hWnd And nmh.code = LVN_BEGINDRAG Then
            ' yes, cancel this operation
            retValue = 1
            Cancel = True
        End If
    End If
End Sub


so more please?please?

____________________________
Please help out.

05-05-2006 at 01:22 AM
View Profile Send Email to User Show All Posts | Quote Reply
steve_w
Level: Moderator


Registered: 18-04-2003
Posts: 1156
icon Re: MsgHook.dll download?

Don't know if this is the one you're after

Steve  

____________________________
Attached:
VBMsgHook.zip 31 KB (Downloads: 0)

05-05-2006 at 09:39 AM
View Profile Send Email to User Show All Posts | Quote Reply
steve_w
Level: Moderator


Registered: 18-04-2003
Posts: 1156
icon Re: MsgHook.dll download?

Or this one



____________________________
Attached:
MSGHOOK.zip 1 KB (Downloads: 1)

05-05-2006 at 09:51 AM
View Profile Send Email to User Show All Posts | Quote Reply
steve_w
Level: Moderator


Registered: 18-04-2003
Posts: 1156
icon Re: MsgHook.dll download?

Or even this one from www.dotnet2themax.com


[Edited by steve_w on 05-05-2006 at 10:06 AM GMT]

____________________________
Attached:
MsgHookX.zip 73 KB (Downloads: 0)

05-05-2006 at 09:57 AM
View Profile Send Email to User Show All Posts | Quote Reply
GeoffS
Level: VB Lord


Registered: 29-09-2004
Posts: 536
icon Re: MsgHook.dll download?

You've certainly got your HOOKS into this thread Steve      

____________________________
multi-tasking - the ability to hang more than one app. at the same time.

05-05-2006 at 11:10 AM
View Profile Send Email to User Show All Posts | Quote Reply
steve_w
Level: Moderator


Registered: 18-04-2003
Posts: 1156
icon Re: MsgHook.dll download?

After the first I was HOOKed  

05-05-2006 at 12:37 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : MsgHook.dll download? Solved Topic
Previous Topic (COOL Job offers)Next Topic (adapting code for form 2.0) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder