Jump to content

Detect WM_VSCROLL in treeview

Recommended Posts

i dont have a test example to test this currently

maybe some one is aware of the problem  and has  an already  function for this 

i think it it needs some-kind of  a proc function concerning the treeview

of-course a scroll needs to be detected also if its done from the mouse wheel

my final aim with this is to populate tree directory files in to the treeview handle to the point where they are visible in the window 

and to experiment how i can repopulate  left over files if any when scrolling is detected .etc


Edited by Deye
Link to post
Share on other sites

Edit: works

Global $hEventProc = DllCallbackRegister('_EventProc', 'none', 'ptr;dword;hwnd;long;long;dword;dword')
    Global $hEventHook = _WinAPI_SetWinEventHook($EVENT_OBJECT_VALUECHANGE, $EVENT_OBJECT_VALUECHANGE, DllCallbackGetPtr($hEventProc), 0, $CurrentThreadId)
    Func _EventProc($hEventHook, $iEvent, $hWnd, $iObjectID, $iChildID, $iThreadID, $iEventTime)
        #forceref $hEventHook, $iObjectID, $iChildID, $iThreadID, $iEventTime
        If $CurrentThreadId = $iThreadID And $iObjectID = $OBJID_VSCROLL Then
            Switch $iEvent
                Case $EVENT_OBJECT_VALUECHANGE


Edited by Deye
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...