I'm trying to create a tracking tooltip that displays the current value in a graph depending on the cursor position. I have several problems:

1. The tooltip doesn't appear the first time the mouse hovers over the CWnd derived class. Only after hovering over, leaving, and hovering over again does the tooltip appear;

2. The tooltip only displays once. That is, once the tooltip shows, it updates correctly to show the value in the graph. Once the mouse leaves the CWnd derived class again, the tooltip never reappears when the mouse hovers over the CWnd derived class.

3. The tooltip is locked to the right edge of the CWnd class on the screen. It moves vertically, but not horizontally.

4. The tooltip does not respect new line characters.