动态改变光标的高度,该如何处理

动态改变光标的高度
我已经CreateSolidCaret,但根据需要,还要再改变光标高度,怎么做呢?
我目前发现再CreateSolidCaret一个可以解决问题,但这样会不会有内存泄露呢?

------解决方案--------------------
The CreateSolidCaret member function automatically destroys the previous caret shape, if any, regardless of which window owns the caret. Once created, the caret is initially hidden. To show the caret, the ShowCaret member function must be called.