Ignore:
Timestamp:
May 22, 2000, 7:25:13 PM (25 years ago)
Author:
cbratschi
Message:

merged with Corel WINE 20000513, added new DPA_* functions

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:23 cbratschi Exp $ */
     1/* $Id: tooltips.cpp,v 1.8 2000-05-22 17:25:12 cbratschi Exp $ */
    22/*
    33 * Tool tip control
     
    1818
    1919/*
    20  - Corel WINE 20000317 level
     20 - Corel WINE 20000513 level
    2121 - (WINE 20000130 level)
    2222*/
     
    15121512    TOOLTIPS_INFO *infoPtr = TOOLTIPS_GetInfoPtr (hwnd);
    15131513
     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
    15141523    TOOLTIPS_Hide (hwnd, infoPtr);
    15151524
     
    15531562            infoPtr->nOldTool = infoPtr->nTool;
    15541563            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);
    15591568
    15601569            if (infoPtr->bActive && (infoPtr->nTool != infoPtr->nOldTool))
     
    15631572              {
    15641573                SetTimer(hwnd,ID_TIMERSHOW,infoPtr->nInitialTime,0);
    1565 //              TRACE (tooltips, "timer 1 started!\n");
     1574                //TRACE (tooltips, "timer 1 started!\n");
    15661575              } else
    15671576              {
     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
    15681586                TOOLTIPS_Hide(hwnd,infoPtr);
    15691587                SetTimer (hwnd,ID_TIMERSHOW,infoPtr->nReshowTime,0);
    1570 //              TRACE (tooltips, "timer 2 started!\n");
     1588                //TRACE (tooltips, "timer 2 started!\n");
    15711589              }
    15721590            }
     
    15741592            {
    15751593              SetTimer(hwnd,ID_TIMERLEAVE,100,0);
    1576 //            TRACE (tooltips, "timer 3 started!\n");
     1594              //TRACE (tooltips, "timer 3 started!\n");
    15771595            }
    15781596            break;
Note: See TracChangeset for help on using the changeset viewer.