WM_COMMAND
wParam 
The high-order word specifies the notification code if the message is from a control. If the message is from an accelerator, this value is 1. If the message is from a menu, this value is zero. 
The low-order word specifies the identifier of the menu item, control, or accelerator. 
ID属性的作用:把WM_COMMAND消息和控件联系起来