Home | Overview | How Do I | Tutorial
To illustrate, consider a command message from a Clear All menu item in an MDI application’s Edit menu. Suppose the handler function for this command happens to be a member function of the application’s document class. Here’s how that command reaches its handler after the user chooses the menu item:
If the document did not have a handler, it would next route the command to its document template. Then the command would return to the view and then the frame window. Finally, the frame window would check its message map. If that check failed as well, the command would be routed back to the main MDI frame window and then to the application object — the ultimate destination of unhandled commands.