问题
I tried looking for sample code for displaying a tooltip anywhere in the screen, but mostly are using/including MFC headers
I found this and its way of displaying the tooltip is what i need, but i cant rebuild/study the source when i try to use it in VC++ express
Q: is there a way to simply code it using VC++ Express Edition? Anyone can post a working sample
note: I specifically need this in C++, though my tool is limited in VC++ express
thank you
回答1:
Try to use WTL. This is a lightweight wrapper around WINAPI. There you can find CToolTipCtrl class and some samples. I guess it should be compatible with VC++ express.
来源:https://stackoverflow.com/questions/5730340/tooltip-anywhere-in-the-screen-vc-express-edition