fixed a bug that EVT_SPINCTRL is mistakenly associated with EVT_COMMAND