comparison os2/dw.c @ 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 fbe9028af341
children 5facb5380944
comparison
equal deleted inserted replaced
1519:514b061ac8b2 1520:65861fedc4b4
2017 } 2017 }
2018 2018
2019 /* This procedure handles pointer changes */ 2019 /* This procedure handles pointer changes */
2020 MRESULT EXPENTRY _textproc(HWND hWnd, ULONG msg, MPARAM mp1, MPARAM mp2) 2020 MRESULT EXPENTRY _textproc(HWND hWnd, ULONG msg, MPARAM mp1, MPARAM mp2)
2021 { 2021 {
2022 PFNWP *blah = WinQueryWindowPtr(hWnd, QWP_USER); 2022 WindowData *blah = (WindowData *)WinQueryWindowPtr(hWnd, QWP_USER);
2023
2024 if(blah && blah->bubbletext[0])
2025 _TooltipProc(hWnd, msg, mp1, mp2, blah);
2023 2026
2024 if(msg == WM_MOUSEMOVE &&_wndproc(hWnd, msg, mp1, mp2)) 2027 if(msg == WM_MOUSEMOVE &&_wndproc(hWnd, msg, mp1, mp2))
2025 return MPFROMSHORT(FALSE); 2028 return MPFROMSHORT(FALSE);
2026 2029
2027 if(blah && *blah) 2030 if(blah && blah->oldproc)
2028 { 2031 {
2029 PFNWP myfunc = *blah; 2032 PFNWP myfunc = blah->oldproc;
2030 2033
2031 return myfunc(hWnd, msg, mp1, mp2); 2034 return myfunc(hWnd, msg, mp1, mp2);
2032 } 2035 }
2033 2036
2034 return WinDefWindowProc(hWnd, msg, mp1, mp2); 2037 return WinDefWindowProc(hWnd, msg, mp1, mp2);