Deye Posted January 3, 2020 Share Posted January 3, 2020 (edited) 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 thanks Edited January 3, 2020 by Deye Link to comment Share on other sites More sharing options...
Deye Posted January 4, 2020 Author Share Posted January 4, 2020 (edited) 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 EndSwitch EndIf EndFunc Edited January 5, 2020 by Deye Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now