Ignore:
Timestamp:
Jun 30, 1999, 5:52:19 PM (26 years ago)
Author:
cbratschi
Message:

unicode and other changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/trackbar.c

    r236 r252  
    1 /* $Id: trackbar.c,v 1.9 1999-06-28 15:46:28 cbratschi Exp $ */
     1/* $Id: trackbar.c,v 1.10 1999-06-30 15:52:18 cbratschi Exp $ */
    22/*
    33 * Trackbar control
     
    6767#define SCROLL_TIMER_ID 1
    6868
     69/* Tooltips */
     70
     71#define TOOLTIP_XSPACE 5
     72#define TOOLTIP_YSPACE 5
     73
    6974static BOOL TRACKBAR_SendNotify (HWND hwnd, UINT code);
    7075
     
    7883      COMCTL32_Free(infoPtr->tics);
    7984      infoPtr->tics = NULL;
     85
    8086      infoPtr->uNumTics = 0;
    8187      return;
     
    15701576
    15711577    return 0;
     1578}
     1579
     1580/* pt intialized with cursor position */
     1581
     1582static VOID TRACKBAR_CalcToolTipPos(HWND hwnd,DWORD dwStyle,TRACKBAR_INFO *infoPtr,POINT *pt)
     1583{
     1584  if (dwStyle & TBS_VERT)
     1585  {
     1586    pt->x += 5;
     1587    pt->y += 15;
     1588  } else
     1589  {
     1590    pt->x += 15;
     1591    pt->y += 5;
     1592  }
    15721593}
    15731594
     
    16131634
    16141635           GetCursorPos(&pt);
     1636           TRACKBAR_CalcToolTipPos(hwnd,dwStyle,infoPtr,&pt);
    16151637           SendMessageA(infoPtr->hwndToolTip,TTM_TRACKPOSITION,0,(LPARAM)MAKELPARAM(pt.x,pt.y));
    16161638
     
    19061928      ti.lpszText = (LPSTR)buf;
    19071929      GetCursorPos(&pt);
     1930      TRACKBAR_CalcToolTipPos(hwnd,dwStyle,infoPtr,&pt);
    19081931
    19091932      SendMessageA(infoPtr->hwndToolTip,TTM_UPDATETIPTEXTA,0,(LPARAM)&ti);
    1910       if (dwStyle & TBS_VERT)
    1911       {
    1912         SendMessageA(infoPtr->hwndToolTip,TTM_TRACKPOSITION,0,(LPARAM)MAKELPARAM(pt.x+5,pt.y+15)); //CB: optimize
    1913       } else
    1914       {
    1915         SendMessageA(infoPtr->hwndToolTip,TTM_TRACKPOSITION,0,(LPARAM)MAKELPARAM(pt.x+15,pt.y+5)); //CB: optimize
    1916       }
     1933      SendMessageA(infoPtr->hwndToolTip,TTM_TRACKPOSITION,0,(LPARAM)MAKELPARAM(pt.x,pt.y));
    19171934    }
    19181935
Note: See TracChangeset for help on using the changeset viewer.