Changeset 3585 for trunk/src/comctl32/tooltips.cpp
- Timestamp:
- May 22, 2000, 7:25:13 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/tooltips.cpp
r3285 r3585 1 /* $Id: tooltips.cpp,v 1. 7 2000-03-31 14:44:23cbratschi Exp $ */1 /* $Id: tooltips.cpp,v 1.8 2000-05-22 17:25:12 cbratschi Exp $ */ 2 2 /* 3 3 * Tool tip control … … 18 18 19 19 /* 20 - Corel WINE 20000 317level20 - Corel WINE 20000513 level 21 21 - (WINE 20000130 level) 22 22 */ … … 1512 1512 TOOLTIPS_INFO *infoPtr = TOOLTIPS_GetInfoPtr (hwnd); 1513 1513 1514 /* 1515 * Need to set nCurrentTool to nOldTool so we hide the tool. 1516 * nTool and nOldTool values change when the mouse leaves the window. 1517 * If using TTM_UPDATETIPTEXT we can end up with an nCurrentTool = -1 if the 1518 * text can't be found, thus the tooltip would never be hidden. 1519 */ 1520 if (infoPtr->nTool != infoPtr->nOldTool) 1521 infoPtr->nCurrentTool = infoPtr->nOldTool; 1522 1514 1523 TOOLTIPS_Hide (hwnd, infoPtr); 1515 1524 … … 1553 1562 infoPtr->nOldTool = infoPtr->nTool; 1554 1563 infoPtr->nTool = TOOLTIPS_GetToolFromPoint(infoPtr,lpMsg->hwnd,&pt); 1555 //TRACE (tooltips, "tool (%x) %d %d\n",1556 //hwnd, infoPtr->nOldTool, infoPtr->nTool);1557 //TRACE (tooltips, "WM_MOUSEMOVE (%04x %ld %ld)\n",1558 //hwnd, pt.x, pt.y);1564 //TRACE (tooltips, "tool (%x) %d %d\n", 1565 // hwnd, infoPtr->nOldTool, infoPtr->nTool); 1566 //TRACE (tooltips, "WM_MOUSEMOVE (%04x %ld %ld)\n", 1567 // hwnd, pt.x, pt.y); 1559 1568 1560 1569 if (infoPtr->bActive && (infoPtr->nTool != infoPtr->nOldTool)) … … 1563 1572 { 1564 1573 SetTimer(hwnd,ID_TIMERSHOW,infoPtr->nInitialTime,0); 1565 //TRACE (tooltips, "timer 1 started!\n");1574 //TRACE (tooltips, "timer 1 started!\n"); 1566 1575 } else 1567 1576 { 1577 /* 1578 * Need to set nCurrentTool to nOldTool so we hide the tool. 1579 * nTool and nOldTool values change when the mouse leaves the window. 1580 * If using TTM_UPDATETIPTEXT we can end up with an nCurrentTool = -1 if the 1581 * text can't be found, thus the tooltip would never be hidden. 1582 */ 1583 if (infoPtr->nTool != infoPtr->nOldTool) 1584 infoPtr->nCurrentTool = infoPtr->nOldTool; 1585 1568 1586 TOOLTIPS_Hide(hwnd,infoPtr); 1569 1587 SetTimer (hwnd,ID_TIMERSHOW,infoPtr->nReshowTime,0); 1570 //TRACE (tooltips, "timer 2 started!\n");1588 //TRACE (tooltips, "timer 2 started!\n"); 1571 1589 } 1572 1590 } … … 1574 1592 { 1575 1593 SetTimer(hwnd,ID_TIMERLEAVE,100,0); 1576 //TRACE (tooltips, "timer 3 started!\n");1594 //TRACE (tooltips, "timer 3 started!\n"); 1577 1595 } 1578 1596 break;
Note:
See TracChangeset
for help on using the changeset viewer.