This is a generic event notification system. The only two
places this is currently used are for when the Delete key is
pressed or the Delete menu item is selected, and when the Backspace
key is pressed. The usage can be seen in
/MAXSDK/SAMPLES/MODIFIERS/EDITPAT.CPP, where the Edit
Patch modifier sets up
for notification of Delete operations. It is also used in
EDITSPL.CPP where it deals with deletion of selected
items.
2. Register the EventUser object with the appropriate
router.
3. The EventRouter will call the EventUser's
Notify()
method when the event occurs.
4. When you're done with the EventUser object, call the
EventRouter's UnRegister() method. This will delete the
EventUser from the
router's notification system.
5. If your code is part of a window proc, call the router's
Register and UnRegister methods when the window receives
WM_ACTIVATE messages. This will properly uncouple the notification
system when the window is deactivated.