|
-
April 8th, 2002, 06:00 AM
#1
WH_JOURNALRECORD hook params
WH_JOURNALRECORD hook
I'm writing a control to allow remote monitoring and shadowing of VB apps that uses a WH_JOURNALRECORD hook. All works grand, returning an EVENTMSG structure whenever the user interacts with my app - but I need to convert this to a proprietry message format 'cos the .hwnd on the remote machine is fairly meaningless on the debugging machine...so, I have the following structure:
Type EVENTMSG
message as Long
paramL as Long
paramH as Long
time as Long
hwnd as Long
End Type
From investigation, message is a WM_* message and paramL and paramH vary according to what message it is
(i.e. for all the mouse messages, paramL is the x position and paramH is the y position)
but hwnd is often zero so I have to do an IsWindow around that.
Anyhow - (1) Anyone have any documentation on EVENTMSG that specifies the link between the message and the meaning of the paramH and paramL members or will I have to do all that all by trial and error, and (2) anybody got a better way of getting the control name and index from the .hwnd without iterating the controls collections?
Thanks in advance,
Duncan
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com/EventVB/Overview.htm - Flatten the API learning curve
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|