on_message用于处理一切消息,但是on_registered_message只用处理在系统已经注册过的消息。
The RegisterWindowMessage function is used to define a new window message that is guaranteed to be unique throughout the system.
The macro ON_REGISTERED_MESSAGE is used to handle these messages. This macro accepts a name of a UINT NEAR variable that contains the registered windows message ID.