Ignore:
Timestamp:
Nov 16, 2001, 5:11:01 PM (24 years ago)
Author:
sandervl
Message:

SetScrollRange workaround for endless loop in CVP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/scroll.cpp

    r7294 r7364  
    1 /* $Id: scroll.cpp,v 1.46 2001-11-07 15:36:10 sandervl Exp $ */
     1/* $Id: scroll.cpp,v 1.47 2001-11-16 16:11:01 sandervl Exp $ */
    22/*
    33 * Scrollbar control
     
    15241524    info.nMax   = MaxVal;
    15251525    info.fMask  = SIF_RANGE;
    1526     SetScrollInfo( hwnd, nBar, &info, bRedraw );
     1526//testestset
     1527    static int nestlevel = 0;
     1528   
     1529    //NOTE: This is an ugly workaround for an endless loop in CVP
     1530    //      Need to make sure there isn't a better fix.
     1531    if(++nestlevel == 1)
     1532        SetScrollInfo( hwnd, nBar, &info, bRedraw );
     1533    nestlevel--;
     1534//testestset
    15271535    return TRUE;
    15281536}
Note: See TracChangeset for help on using the changeset viewer.