Mercurial > dwindows
changeset 1520:65861fedc4b4
Enable tooltips on text controls on OS/2.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 29 Dec 2011 19:26:51 +0000 |
parents | 514b061ac8b2 |
children | 9834570c8761 |
files | os2/dw.c |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/os2/dw.c Thu Dec 29 18:50:39 2011 +0000 +++ b/os2/dw.c Thu Dec 29 19:26:51 2011 +0000 @@ -2019,14 +2019,17 @@ /* This procedure handles pointer changes */ MRESULT EXPENTRY _textproc(HWND hWnd, ULONG msg, MPARAM mp1, MPARAM mp2) { - PFNWP *blah = WinQueryWindowPtr(hWnd, QWP_USER); + WindowData *blah = (WindowData *)WinQueryWindowPtr(hWnd, QWP_USER); + + if(blah && blah->bubbletext[0]) + _TooltipProc(hWnd, msg, mp1, mp2, blah); if(msg == WM_MOUSEMOVE &&_wndproc(hWnd, msg, mp1, mp2)) return MPFROMSHORT(FALSE); - if(blah && *blah) - { - PFNWP myfunc = *blah; + if(blah && blah->oldproc) + { + PFNWP myfunc = blah->oldproc; return myfunc(hWnd, msg, mp1, mp2); }