Ignore:
Timestamp:
Oct 1, 1999, 5:53:32 PM (26 years ago)
Author:
cbratschi
Message:

trackbar: WM_ENABLE speed improved, hotkey: finished, animate: first work

File:
1 edited

Legend:

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

    r942 r1100  
    1 /* $Id: trackbar.c,v 1.18 1999-09-15 16:31:48 cbratschi Exp $ */
     1/* $Id: trackbar.c,v 1.19 1999-10-01 15:53:32 cbratschi Exp $ */
    22/*
    33 * Trackbar control
     
    1313 *
    1414 * Note: TBM_SETTHUMBLENGTH implemented, COMCTL32 5.00 ignores it
     15 *       Microsoft(TM) should fix this bug :)
    1516 */
    1617
     
    22172218{
    22182219  TRACKBAR_INFO *infoPtr = TRACKBAR_GetInfoPtr(hwnd);
     2220  BOOL oldFocus = infoPtr->bFocus;
    22192221
    22202222  if (wParam) infoPtr->bFocus = (GetFocus() == hwnd);
    22212223  else infoPtr->bFocus = FALSE;
    22222224
    2223   TRACKBAR_Refresh(hwnd);
     2225  if (oldFocus != infoPtr->bFocus) TRACKBAR_Refresh(hwnd);
     2226  else TRACKBAR_UpdateThumbPosition(hwnd,infoPtr->nPos,TRUE);
    22242227
    22252228  return 0;
Note: See TracChangeset for help on using the changeset viewer.