The architecture of the Windows interface is based heavily on the concept of an event . In order to see event handling in action, we will add a menu to the application.
Menus are one of the most common ways of adding interaction to an application.
Associate the menu and accelerator table with our main window. To handle these events we must add response tables to the window and application. Define our window response table. Note how there is a '1' at the end of macro name. Add a handler for the mouse move event.