1
我是GDI +編程新手,正在尋找一些建議。使用GDI +繪製工具提示
我加載從文件的圖像,並且使用以下功能顯示它(包括一些僞代碼):
Gdiplus::Image *i = new Gdiplus::Image(file, other parameters ...);
Gdiplus::DrawImage(i, other parameters ...);
我想工具提示與所述圖像相關聯。有什麼方法可以自動設置/附加工具提示到Gdiplus :: Image objact(或者我想爲此繪製的任何其他Gdiplus控件)?
如果不是,如何實現這樣的功能?我曾看過WTL中的CToolTipCtrl,但不知道如何將它附加到Gdiplus :: Image。
在此先感謝。