I was trying to write a hook for an application using the SetWindowsHookEx.
I created a DLL and hooked to the application by statically linking to it.
I was getting proper notifications for the button and edit controls etc. But when i tried for CListCtrl/CListView it is not working. I get a lot of messages. But i cant get anything meaning full out of it.
When i checked with spy++ also it is not showing CLitstCtr. Is there a way to get the messages from CListCtr?
My intention is to log all the events happening on a CListCtrl in my application.
I have event handlers for handling the event properly. My code is simple . Create a DocView application with CListView as the view class. make it report style and have some items in it. Create a dll which export functions to hook the application. These exposed dll function will be calling SetWindowsHookEx .
Here msghook is the function which i use for finding the messages. Inside the function we convert lparam to get the message (LPMSG msg = (LPMSG)lParam;)
I get proper messages for normal controls. But for CListCrel there is noting which i can use.
Is there any way to hook a CListView
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)