Changeset 2184 for trunk/src/comctl32/toolbar.c
- Timestamp:
- Dec 21, 1999, 6:01:38 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/toolbar.c
r2164 r2184 1 /* $Id: toolbar.c,v 1.2 2 1999-12-20 18:44:08cbratschi Exp $ */1 /* $Id: toolbar.c,v 1.23 1999-12-21 17:01:37 cbratschi Exp $ */ 2 2 /* 3 3 * Toolbar control … … 856 856 INT nItem; 857 857 858 SendDlgItemMessageA(hwnd,IDC_AVAILBTN_LBOX,WM_SETREDRAW,FALSE,0); 859 SendDlgItemMessageA(hwnd,IDC_TOOLBARBTN_LBOX,WM_SETREDRAW,FALSE,0); 858 860 SendDlgItemMessageA(hwnd,IDC_AVAILBTN_LBOX,LB_RESETCONTENT,0,0); 859 861 SendDlgItemMessageA(hwnd,IDC_TOOLBARBTN_LBOX,LB_RESETCONTENT,0,0); … … 935 937 } 936 938 937 if (leftCount == 0 && rightCount == 0) return FALSE;938 939 939 SendDlgItemMessageA(hwnd,IDC_AVAILBTN_LBOX,LB_SETCURSEL,0,0); 940 940 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; 941 948 942 949 TBCUSTOMIZE_AvailSelChange(hwnd);
Note:
See TracChangeset
for help on using the changeset viewer.