Function 40 -
set a mask for the expected events.
The mask for the expected events affects the functions of working with
events 10,
11, 23 - they only report on events resolved by this mask.
Options:
* eax =
40 - function number
* ebx =
mask: bit i corresponds to event i + 1 (see list of events)
(the set bit enables
event notification)
bit 31: mouse event
activity filter
bit 31 = 0 - inactive
window always receives mouse events
bit 31 = 1 - inactive
window does not receive mouse events
bit 30: cursor position
filter
bit 30 = 0 - the window
accepts mouse events if the cursor is outside the window
bit 30 = 1 - the window
does not accept mouse events if the cursor is outside the window
Return value:
* eax =
previous mask value
Remarks:
The default mask (7 =
111b) allows redrawing notifications and keystrokes and buttons. This is
sufficient for most applications.
Events prohibited in
the mask are still saved if they come; they are simply not notified of the
event functions.
Event functions take
into account the mask at the time the function is called, and not at the time
the message arrives.
Constants for registers:
eax -
SF_SET_EVENTS_MASK (40)
DO NOT MAKE LEMONADE