Hi everyone. Would you give me a solution to a following issue: on an MDI app, with CView as CMyView, and here a spread a self developed control, derived from CWnd. This control draw some rectangles. The issue here is to display a CMFCToolTipCtrl when I am with mouse over these rectangles ... that is all. But I didn't make it by now.

I have tried to handle
Code:
ON_NOTIFY(TTN_NEEDTEXT, ID_MYCTRL, OnGetTooltipText)
in CMyView ... OnGetTooltipText is not called.

If I pass OnMouseMove from CMyCtrl (derived CWnd) to CMyView, and is this handler to call CMFCToolTipCtrl::Popup() is happen something: the tooltip is showing, CMyView is loosing the focus, and tooltip is closing, the CMyView is get the focus again, and CMyCtrl is send again OnMouseMove to the parent, which is CMyView, the tooltip is show again, and this is looping foe ever, which reveal me that is not the right solution ...

this is the architecture of my CMyView:
Code:
void CMyView::OnInitialUpdate()
{
	CView::OnInitialUpdate();

	VERIFY(m_pMyCtrl->Create(WS_CHILD | WS_VISIBLE | WS_VSCROLL, CRect(0, 0, 0, 0), this, ID_MYCTRL));
...
}
and
Code:
void CMyView::OnSize(UINT nType, int cx, int cy)
{
	CView::OnSize(nType, cx, cy);

	// TODO: Add your message handler code here
	if (NULL != m_pMyCtrl->GetSafeHwnd() && cx > 0 && cy > 0)
	{
		CRect rect(CPoint(0, 0), CSize(cx, cy));
		m_pMyCtrl->MoveWindow(rect);
	}
}
how you would show correctly a tooltip when you mouse pointer is somewhere on view ? What is the right way to do this ?

Thank you for any hint.