Windows handles user input by sending messages to the active window. The Microsoft Foundation classes support user input with the message map mechanism described in the “Window Management” chapter. The current chapter describes how to use the message map mechanism to handle specific types of user input.