开发者

MFC tooltip for list control of dialog box

I have developed on application, which shows a dialog box with two list controls. In this list control, I am showing images. Now I w开发者_如何学Goant is, when we move the mouse on images from the list control of dialog box, It will show tool tip for that.

How can I show tool tips for images in a list control in a dialog box?


The CToolTipCtrl control is the MFC wrapper class around the Win32 "tool tip". You can use this to display a small pop-up window to describe another control or provide additional information in your app.

If you're using a ListBox control, explore one of these sample projects to see how to display tooltips for individual items displayed within that ListBox control:

  • ListBox With ToolTip Support
  • List Box With ToolTips

And if you're using a ListView control (CListCtrl in MFC), then you should start by reading the documentation for the GetToolTips function and the corresponding SetToolTips function. You can also check out how this sample ListView control implements tooltips:

  • CListCtrl and Displaying a Tooltip
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜