Ignore:
Timestamp:
Dec 21, 1999, 6:01:38 PM (26 years ago)
Author:
cbratschi
Message:

WM_SETREDRAW changes

File:
1 edited

Legend:

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

    r2164 r2184  
    1 /* $Id: toolbar.c,v 1.22 1999-12-20 18:44:08 cbratschi Exp $ */
     1/* $Id: toolbar.c,v 1.23 1999-12-21 17:01:37 cbratschi Exp $ */
    22/*
    33 * Toolbar control
     
    856856  INT nItem;
    857857
     858  SendDlgItemMessageA(hwnd,IDC_AVAILBTN_LBOX,WM_SETREDRAW,FALSE,0);
     859  SendDlgItemMessageA(hwnd,IDC_TOOLBARBTN_LBOX,WM_SETREDRAW,FALSE,0);
    858860  SendDlgItemMessageA(hwnd,IDC_AVAILBTN_LBOX,LB_RESETCONTENT,0,0);
    859861  SendDlgItemMessageA(hwnd,IDC_TOOLBARBTN_LBOX,LB_RESETCONTENT,0,0);
     
    935937  }
    936938
    937   if (leftCount == 0 && rightCount == 0) return FALSE;
    938 
    939939  SendDlgItemMessageA(hwnd,IDC_AVAILBTN_LBOX,LB_SETCURSEL,0,0);
    940940  SendDlgItemMessageA(hwnd,IDC_TOOLBARBTN_LBOX,LB_SETCURSEL,(rightCount > 0) ? 0:(WPARAM)-1,0);
     941
     942  SendDlgItemMessageA(hwnd,IDC_AVAILBTN_LBOX,WM_SETREDRAW,TRUE,0);
     943  SendDlgItemMessageA(hwnd,IDC_TOOLBARBTN_LBOX,WM_SETREDRAW,TRUE,0);
     944  InvalidateRect(GetDlgItem(hwnd,IDC_AVAILBTN_LBOX),NULL,TRUE);
     945  InvalidateRect(GetDlgItem(hwnd,IDC_TOOLBARBTN_LBOX),NULL,TRUE);
     946
     947  if (leftCount == 0 && rightCount == 0) return FALSE;
    941948
    942949  TBCUSTOMIZE_AvailSelChange(hwnd);
Note: See TracChangeset for help on using the changeset viewer.