CMFCToolTipCtrl or CTooltipManager examples?

Has anyone else tried to use these new MFC VS2008 classes? I can't seem to find anything. Even the VS2008 (1) samples do not mention these classes. (They use CToolTip.)

(1) Update: My mistake. I downloaded samples other than SP1 . I see that SP1 samples have samples specifically for Feature Feature Pack 2008, including the DlgToolTips and ToolTipDemo projects mentioned in the answer. Unfortunately, they do not address doc / view or CTooltipManager.

In particular, I'm trying to display tooltips in a standard MFC view / document application, where there are two side-by-side views whose parent is CSplitterWnd. I had this working preview of SP1, and I thought it was time to try the new Feature Pack tooltips.

Is there a way to get these things to work without overriding PreTranslateMessage () and manually calling RelayEvent ()? (I don't think I saw anything in MFC as poorly designed as tips.)

It is not so simple as simply calling CTooltipManager :: CreateToolTip () and then AddTool () on the created review.

+4
source share
2 answers

If you have not seen this, there is a very short example here

+1
source

Have you looked at the DlgToolTips and ToolTipDemo sample applications? They both use classes that inherit CMFCToolTipCtrl . DlgToolTips includes code that calls RelayEvent from PreTranslateMessage , but ToolTipDemo does not.

+1
source

All Articles