This function creates a manual-reset or auto-reset event object and also sets the initialstate of the object.
这个函数创建一个手工重置或自动重置的事件对象,同时还要设置改对象的初始状态。
2
For example, in the initialstate of Inactive, the only expected event is mouseover, so you can define a function to handle that situation, as shown in Listing 9.