Changeset 496 for trunk/src/comctl32/tab.c
- Timestamp:
- Aug 14, 1999, 6:13:16 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/tab.c
r295 r496 1 /* $Id: tab.c,v 1. 9 1999-07-12 15:58:48cbratschi Exp $ */1 /* $Id: tab.c,v 1.10 1999-08-14 16:13:13 cbratschi Exp $ */ 2 2 /* 3 3 * Tab control … … 800 800 */ 801 801 if (!(lStyle & TCS_OWNERDRAWFIXED)) 802 { 803 DeleteObject(hbr); 802 804 hbr = CreateSolidBrush(GetSysColor(COLOR_3DHILIGHT)); 805 } 803 806 804 807 /* … … 849 852 * Background color. 850 853 */ 854 DeleteObject(hbr); 851 855 hbr = CreateSolidBrush(GetSysColor(COLOR_BTNFACE)); 852 856 … … 963 967 SetBkMode(hdc, oldBkMode); 964 968 SelectObject(hdc, holdPen); 969 DeleteObject(hfocusPen); 970 DeleteObject(hbr); 965 971 } 966 972 } … … 1098 1104 if (givenDC==0) 1099 1105 ReleaseDC(hwnd, hdc); 1106 1107 DeleteObject(brush); 1100 1108 1101 1109 return 0; … … 1420 1428 if (len>wineItem->cchTextMax) 1421 1429 wineItem->pszText = COMCTL32_ReAlloc (wineItem->pszText, (len+1)*sizeof(WCHAR)); 1422 lstrcpy nAtoW (wineItem->pszText, tabItem->pszText, len+1);1430 lstrcpyAtoW (wineItem->pszText, tabItem->pszText); 1423 1431 } 1424 1432 … … 1456 1464 if (len>wineItem->cchTextMax) 1457 1465 wineItem->pszText = COMCTL32_ReAlloc (wineItem->pszText, (len+1)*sizeof(WCHAR)); 1458 lstrcpy nW (wineItem->pszText, tabItem->pszText, len+1);1466 lstrcpyW (wineItem->pszText, tabItem->pszText); 1459 1467 } 1460 1468 … … 1784 1792 } 1785 1793 1786 LRESULT WINAPI1794 static LRESULT WINAPI 1787 1795 TAB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) 1788 1796 {
Note:
See TracChangeset
for help on using the changeset viewer.