Ignore:
Timestamp:
Oct 26, 2001, 10:08:50 AM (24 years ago)
Author:
sandervl
Message:

only redraw (text the same) for owner drawn listview controls

File:
1 edited

Legend:

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

    r7207 r7210  
    21542154 *   FAILURE : FALSE (NOT EQUAL)
    21552155 */
     2156#ifdef __WIN32OS2__
     2157static UINT LISTVIEW_GetItemChanges(LISTVIEW_ITEM *lpItem, LPLVITEMA lpLVItem, DWORD lStyle)
     2158#else
    21562159static UINT LISTVIEW_GetItemChanges(LISTVIEW_ITEM *lpItem, LPLVITEMA lpLVItem)
     2160#endif
    21572161{
    21582162  UINT uChanged = 0;
     
    22132217      {
    22142218#ifdef __WIN32OS2__
    2215         //SvL: NT's COMCTL32 seems to always update the item, regardless of
    2216         //     whether the string is different or not.
    2217         //     Some apps depends on this (CVP)
    2218         uChanged |= LVIF_TEXT;
    2219 #else
     2219        if(lStyle & LVS_OWNERDRAWFIXED) {
     2220            //SvL: NT's COMCTL32 seems to always update the item, regardless of
     2221            //     whether the string is different or not.
     2222            //     Some apps depends on this (CVP)
     2223            //TODO: Might need to send some kind of notification to determine
     2224            //      if a redraw is really necessary
     2225            uChanged |= LVIF_TEXT;
     2226        }
     2227        else
     2228#endif
    22202229        if (lpItem->pszText)
    22212230        {
     
    22292238          uChanged |= LVIF_TEXT;
    22302239        }
    2231 #endif
    22322240      }
    22332241      else
     
    26272635          nmlv.hdr.code = LVN_ITEMCHANGING;
    26282636          nmlv.lParam = lpItem->lParam;
     2637#ifdef __WIN32OS2__
     2638          uChanged = LISTVIEW_GetItemChanges(lpItem, lpLVItem, lStyle);
     2639#else
    26292640          uChanged = LISTVIEW_GetItemChanges(lpItem, lpLVItem);
     2641#endif
    26302642          if (uChanged != 0)
    26312643          {
Note: See TracChangeset for help on using the changeset viewer.