自己写,呵呵。
可以参考一下
http://community.csdn.net/Expert/topic/3624/3624503.xml?temp=.4505731