Ignore:
Timestamp:
Feb 20, 2002, 2:55:13 PM (24 years ago)
Author:
sandervl
Message:

Listview fix: update item width & height during WM_SIZE

File:
1 edited

Legend:

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

    r7487 r7976  
    65766576        MEASUREITEMSTRUCT mis;
    65776577        UINT              id = GetWindowLongA(hwnd,GWL_ID);
    6578 
    65796578        mis.CtlType    = ODT_LISTVIEW;
    65806579        mis.CtlID      = id;
     
    93949393  LONG lStyle = GetWindowLongA(hwnd, GWL_STYLE);
    93959394  UINT uView = lStyle & LVS_TYPEMASK;
    9396 
     9395#ifdef __WIN32OS2__
     9396  LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)GetWindowLongA(hwnd, 0);
     9397#endif
    93979398  TRACE("(hwnd=%x, width=%d, height=%d)\n",hwnd, Width, Height);
    93989399
     
    94129413
    94139414  LISTVIEW_UpdateScroll(hwnd);
     9415
     9416#ifdef __WIN32OS2__
     9417  //width/height may have changed
     9418  infoPtr->nItemWidth = LISTVIEW_GetItemWidth(hwnd);
     9419  infoPtr->nItemHeight = LISTVIEW_GetItemHeight(hwnd);
     9420#endif
    94149421
    94159422  /* invalidate client area + erase background */
     
    95669573      }
    95679574    }
     9575
    95689576
    95699577    /* update the size of the client area */
Note: See TracChangeset for help on using the changeset viewer.