tooltips on edit controls
-
hi all:) what is the easisest way to add tooltip support to my edit boxes in MFC application ? thank you.
-
hi all:) what is the easisest way to add tooltip support to my edit boxes in MFC application ? thank you.
i use this way for button listbox and now edit and it work
m_tooltip.Create(this); SetToolTip(_T("Hello")); void CAnswerView::SetToolTip(LPTSTR ToolTip) { TOOLINFO ti; ti.cbSize = sizeof(TOOLINFO); ti.lpszText = ToolTip; ti.hinst = AfxGetInstanceHandle(); ti.hwnd = m_Edit2.m_hWnd; ti.uFlags = TTF_SUBCLASS | TTF_IDISHWND; ti.uId = (UINT) m_Edit2.m_hWnd; m_tooltip.SendMessage(TTM_ADDTOOL, 0, (LPARAM) &ti); }
_**
**_
whitesky
-
i use this way for button listbox and now edit and it work
m_tooltip.Create(this); SetToolTip(_T("Hello")); void CAnswerView::SetToolTip(LPTSTR ToolTip) { TOOLINFO ti; ti.cbSize = sizeof(TOOLINFO); ti.lpszText = ToolTip; ti.hinst = AfxGetInstanceHandle(); ti.hwnd = m_Edit2.m_hWnd; ti.uFlags = TTF_SUBCLASS | TTF_IDISHWND; ti.uId = (UINT) m_Edit2.m_hWnd; m_tooltip.SendMessage(TTM_ADDTOOL, 0, (LPARAM) &ti); }
_**
**_
whitesky
doesnt work :( I have VS2005
-
doesnt work :( I have VS2005
i have vs2003 and it work so see CHoverButton - A simple hoverbutton with one bitmap and a tooltip[^] or Here[^]_**
**_
whitesky
-
i have vs2003 and it work so see CHoverButton - A simple hoverbutton with one bitmap and a tooltip[^] or Here[^]_**
**_
whitesky
-
I have VS 2003 and VS 2005 installed. its working fine with both version of windows. SaRath
"DM/b>****on't blindly follow rules you read somewhere without verifying that it makes sense for your situation!"realy, I test my code in vs2005 for buttons and it work but i dont test this code for edit in vs2005_**
**_
whitesky