<p>I would like to be able to display some dynamic text at the mouse 
cursor location in a win32 app, for instance to give an X,Y coordinate that 
would move with the cursor as though attached. I can do this during a 
mousemove event using a TextOut() call for the window at the mouse 
coordinates and invalidate a rectange around a stored last cursor position 
to clear up the previous output. However this can suffer from flickering and 
cause problems with other things being drawn in a window such as tracker 
boxes. Is there a better way to do this, perhaps using the existing cursor 
drawing/invalidating mechanism ? </p>

[{'answer_id': 64028, 'author': 'graham.reeds', 'author_id': 342, 'author_profile': 'https://Stackoverflow.com/users/342', 'pm_score': 2, 'selected': False, 'text': '<p>You can do this via ToolTips - check out <a href="http://msdn.microsoft.com/en-us/library/6b4cb3a5(VS.80).aspx" rel="nofollow noreferrer">CToolTipCtrl</a>.</p>\n\n<p>If you want flicker free tracking ToolTips then you will need to derive your own classes from CToolTipCtrl that use the <a href="http://msdn.microsoft.com/en-us/library/bb760421(VS.85).aspx" rel="nofollow noreferrer">trackActivate</a> messages.</p>\n'}, {'answer_id': 66514, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': True, 'text': '<p>You may want to consider a small transparent window that you move to follow the mouse. In particular, since Windows 2000, <a href="http://msdn.microsoft.com/en-us/library/ms632599(VS.85).aspx#layered" rel="nofollow noreferrer">Layered</a> windows seem to be the weapon of choice (confession: no personal experience there).</p>\n'}, {'answer_id': 14355198, 'author': 'Mana', 'author_id': 1983111, 'author_profile': 'https://Stackoverflow.com/users/1983111', 'pm_score': 0, 'selected': False, 'text': '<p>You can overwrite OnSetCursor to get a dynamic mouse cursor. I just found a German tutorial.</p>\n\n<p><a href="https://web.archive.org/web/20050320074845/http://www.cpp-tutor.de/mfc/mfc/kap7/tut/tut4.htm" rel="nofollow noreferrer">German tutorial</a></p>\n\n<p><a href="http://translate.google.com/translate?hl=de&amp;sl=de&amp;tl=en&amp;u=https%3A%2F%2Fweb.archive.org%2Fweb%2F20050320074845%2Fhttp%3A%2F%2Fwww.cpp-tutor.de%2Fmfc%2Fmfc%2Fkap7%2Ftut%2Ftut4.htm&amp;sandbox=1" rel="nofollow noreferrer">English translated tutorial</a></p>\n'}]
['https://Stackoverflow.com/questions/63429', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/7838/']