removed TTN_NEEDTEXT handlers, we don't use tooltips on demand
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -207,29 +207,6 @@ LRESULT APIENTRY _EXPORT wxComboEditWndProc(HWND hWnd,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// deal with tooltips here
|
|
||||||
#if wxUSE_TOOLTIPS && defined(TTN_NEEDTEXT)
|
|
||||||
case WM_NOTIFY:
|
|
||||||
{
|
|
||||||
wxCHECK_MSG( win, 0, _T("should have a parent") );
|
|
||||||
|
|
||||||
NMHDR* hdr = (NMHDR *)lParam;
|
|
||||||
if ( hdr->code == TTN_NEEDTEXT )
|
|
||||||
{
|
|
||||||
wxToolTip *tooltip = win->GetToolTip();
|
|
||||||
if ( tooltip )
|
|
||||||
{
|
|
||||||
TOOLTIPTEXT *ttt = (TOOLTIPTEXT *)lParam;
|
|
||||||
ttt->lpszText = (wxChar *)tooltip->GetTip().c_str();
|
|
||||||
}
|
|
||||||
|
|
||||||
// processed
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
#endif // wxUSE_TOOLTIPS
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ::CallWindowProc(CASTWNDPROC gs_wndprocEdit, hWnd, message, wParam, lParam);
|
return ::CallWindowProc(CASTWNDPROC gs_wndprocEdit, hWnd, message, wParam, lParam);
|
||||||
|
@@ -706,32 +706,6 @@ LRESULT APIENTRY _EXPORT wxRadioBtnWndProc(HWND hwnd,
|
|||||||
return lDlgCode | DLGC_WANTARROWS;
|
return lDlgCode | DLGC_WANTARROWS;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if wxUSE_TOOLTIPS
|
|
||||||
case WM_NOTIFY:
|
|
||||||
{
|
|
||||||
NMHDR* hdr = (NMHDR *)lParam;
|
|
||||||
if ( hdr->code == TTN_NEEDTEXT )
|
|
||||||
{
|
|
||||||
wxRadioBox *
|
|
||||||
radiobox = (wxRadioBox *)wxGetWindowUserData(hwnd);
|
|
||||||
|
|
||||||
wxCHECK_MSG( radiobox, 0,
|
|
||||||
wxT("radio button without radio box?") );
|
|
||||||
|
|
||||||
wxToolTip *tooltip = radiobox->GetToolTip();
|
|
||||||
if ( tooltip )
|
|
||||||
{
|
|
||||||
TOOLTIPTEXT *ttt = (TOOLTIPTEXT *)lParam;
|
|
||||||
ttt->lpszText = (wxChar *)tooltip->GetTip().c_str();
|
|
||||||
}
|
|
||||||
|
|
||||||
// processed
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
#endif // wxUSE_TOOLTIPS
|
|
||||||
|
|
||||||
case WM_KEYDOWN:
|
case WM_KEYDOWN:
|
||||||
{
|
{
|
||||||
wxRadioBox *radiobox = (wxRadioBox *)wxGetWindowUserData(hwnd);
|
wxRadioBox *radiobox = (wxRadioBox *)wxGetWindowUserData(hwnd);
|
||||||
|
Reference in New Issue
Block a user