I am using MFC CToolTipCtrl for creating tooltip for a button. Now I have problem when I run the application in Windows XP.When I place mouse over the button,tooltip will popup but after clicking the button no tooltip is shown.In windows 7 there is no such problem. I've used the following code to create tooltip
pToolTip->Create(this);
TOOLINFO ToolInfo;
ToolInfo.cbSize = sizeof(TOOLINFO);
ToolInfo.lpszText = const_cast<LPTSTR>(szToolTipText);
ToolInfo.hinst = AfxGetInstanceHandle();
ToolInfo.hwnd = pButton->m_hWnd;
ToolInfo.uFlags = TTF_SUBCLASS | TTF_IDISHWND;
ToolInfo.uId = (UINT)pButton->m_hWnd;
pToolTip->SendMessage(TTM_ADDTOOL, 0, (LPARAM) &ToolInfo);