View Poll Results: Which is the better way of implementing a WH_JOURNALPLAYBACK hook
- Voters
- 1. You may not vote on this poll
-
Jun 18th, 2002, 03:30 AM
#1
Thread Starter
Frenzied Member
[EventVB] Software design question..
Right - I'm working on the EventVBification of the WH_JOURNALPLAYBACK hook.
This hook takes two completely different kinds of input - either a mouse event which has an x and a y and a mouse message type or a keyboard event that has a VKey and a scancode and a keyboard message type.
The question is which is the better way of implementing this:
(a) Have each firing of the WH_JOURNALPLAYBACK message trigger two events - first one that takes mouse parameters and (if no mouse parameters are forthcoming) one that takes keyboard parameters
or:-
(b) Have an intermediate class (ApiMsg) which can be filled with either a mouse message or a keyboard message and fire one event that requires this class to be filled.
Any thoughts?
Thanks in advance,
Duncan
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
|