你需要创建一个自定义的修饰器(Decorator)。请参考以下链接,了解如何实现: http://blog.pixelingene.com/2007/06/balloondecorator-source-code/