Sming event handlers

Definitions of Sming event handler functions.

Definitions of Sming event handler functions.