Ignore:
Timestamp:
Oct 28, 2001, 11:37:17 AM (24 years ago)
Author:
sandervl
Message:

LISTVIEW_GetItemWidth bugfix: item can never be bigger than the client area

File:
1 edited

Legend:

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

    r7210 r7240  
    976976  else if (uView == LVS_REPORT)
    977977  {
     978    RECT rect;
    978979    /* calculate width of header */
    979980    nHeaderItemCount = Header_GetItemCount(infoPtr->hwndHeader);
     
    985986      }
    986987    }
     988#ifdef __WIN32OS2__
     989    //SvL: An item can never be bigger than the client area
     990    GetClientRect(hwnd, &rect);
     991    nItemWidth = MIN(rect.left - rect.right, nItemWidth);
     992#endif
    987993  }
    988994  else
Note: See TracChangeset for help on using the changeset viewer.