Changeset 3154 for trunk/src/comctl32/tooltips.cpp
- Timestamp:
- Mar 18, 2000, 5:17:35 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/tooltips.cpp
r3145 r3154 1 /* $Id: tooltips.cpp,v 1. 3 2000-03-17 17:13:26cbratschi Exp $ */1 /* $Id: tooltips.cpp,v 1.4 2000-03-18 16:17:32 cbratschi Exp $ */ 2 2 /* 3 3 * Tool tip control … … 17 17 */ 18 18 19 /* WINE 20000130 level */ 19 /* 20 - Corel WINE 20000317 level 21 - (WINE 20000130 level) 22 */ 20 23 21 24 #include <string.h> … … 23 26 #include "winbase.h" 24 27 #include "commctrl.h" 28 #include "ccbase.h" 25 29 #include "tooltips.h" 26 30 #include "comctl32.h" … … 1926 1930 1927 1931 /* allocate memory for info structure */ 1928 infoPtr = (TOOLTIPS_INFO *)COMCTL32_Alloc(sizeof(TOOLTIPS_INFO)); 1929 SetWindowLongA(hwnd,0,(DWORD)infoPtr); 1932 infoPtr = (TOOLTIPS_INFO*)initControl(hwnd,sizeof(TOOLTIPS_INFO)); 1930 1933 1931 1934 /* initialize info structure */ … … 1954 1957 1955 1958 SetRectEmpty(&infoPtr->rcMargin); 1956 1957 nResult = (INT)SendMessageA(GetParent(hwnd),WM_NOTIFYFORMAT,(WPARAM)hwnd,(LPARAM)NF_QUERY);1958 // if (nResult == NFR_ANSI)1959 // TRACE (tooltips, " -- WM_NOTIFYFORMAT returns: NFR_ANSI\n");1960 // else if (nResult == NFR_UNICODE)1961 // FIXME (tooltips, " -- WM_NOTIFYFORMAT returns: NFR_UNICODE\n");1962 // else1963 // FIXME (tooltips, " -- WM_NOTIFYFORMAT returns: error!\n");1964 1959 1965 1960 SetWindowPos(hwnd,HWND_TOP,0,0,0,0,SWP_NOZORDER | SWP_HIDEWINDOW | SWP_NOACTIVATE); … … 2013 2008 2014 2009 /* free tool tips info data */ 2015 COMCTL32_Free(infoPtr);2010 doneControl(hwnd); 2016 2011 2017 2012 return 0; … … 2087 2082 2088 2083 return DefWindowProcA (hwnd, WM_NCHITTEST, wParam, lParam); 2089 }2090 2091 static LRESULT2092 TOOLTIPS_NotifyFormat (HWND hwnd, WPARAM wParam, LPARAM lParam)2093 {2094 // FIXME ("hwnd=%x wParam=%x lParam=%lx\n", hwnd, wParam, lParam);2095 2096 return 0;2097 2084 } 2098 2085 … … 2244 2231 case WM_RBUTTONUP: 2245 2232 infoPtr = TOOLTIPS_GetInfoPtr(lpttsi->hwndToolTip); 2246 nTool = TOOLTIPS_GetToolFromMessage (infoPtr, hwnd);2247 2248 // TRACE (tooltips, "subclassed mouse message %04x\n", uMsg); 2249 2250 2233 if (!infoPtr) break; 2234 nTool = TOOLTIPS_GetToolFromMessage (infoPtr, hwnd); 2235 2236 infoPtr->nOldTool = infoPtr->nTool; 2237 infoPtr->nTool = nTool; 2251 2238 TOOLTIPS_Hide (lpttsi->hwndToolTip, infoPtr); 2252 2239 break; … … 2254 2241 case WM_MOUSEMOVE: 2255 2242 infoPtr = TOOLTIPS_GetInfoPtr (lpttsi->hwndToolTip); 2256 //@@@AH 2000/02/25 check if there is a valid instance data pointer 2257 if (!infoPtr) 2258 { 2259 dprintf(("Tooltips:SubclassProc:WM_MOUSEMOVE: infoPtr == NULL!\n")); 2260 break; 2261 } 2243 if (!infoPtr) break; 2262 2244 nTool = TOOLTIPS_GetToolFromMessage (infoPtr, hwnd); 2263 2245 2264 // TRACE (tooltips, "subclassed WM_MOUSEMOVE\n");2265 2246 infoPtr->nOldTool = infoPtr->nTool; 2266 2247 infoPtr->nTool = nTool; … … 2271 2252 SetTimer (hwnd, ID_TIMERSHOW, 2272 2253 infoPtr->nInitialTime, 0); 2273 //TRACE (tooltips, "timer 1 started!\n");2254 //TRACE (tooltips, "timer 1 started!\n"); 2274 2255 } 2275 2256 else { … … 2445 2426 return TOOLTIPS_NCHitTest (hwnd, wParam, lParam); 2446 2427 2447 case WM_NOTIFYFORMAT:2448 return TOOLTIPS_NotifyFormat (hwnd, wParam, lParam);2449 2450 2428 case WM_PAINT: 2451 2429 return TOOLTIPS_Paint (hwnd, wParam, lParam); … … 2464 2442 // ERR (tooltips, "unknown msg %04x wp=%08x lp=%08lx\n", 2465 2443 // uMsg, wParam, lParam); 2466 return DefWindowProcA (hwnd, uMsg, wParam, lParam);2444 return defComCtl32ProcA (hwnd, uMsg, wParam, lParam); 2467 2445 } 2468 2446 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.