- Timestamp:
- Jun 9, 1999, 3:54:51 PM (26 years ago)
- Location:
- trunk/src/comctl32
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/comctl32.h
r69 r73 19 19 #include <win/commctrl.h> 20 20 #include "unicode.h" 21 #include "wineuni.h" 21 22 22 23 -
trunk/src/comctl32/header.c
r69 r73 596 596 if (phdi->mask & HDI_TEXT) { 597 597 if (lpItem->pszText != LPSTR_TEXTCALLBACKW) 598 // lstrcpynWtoA (phdi->pszText, lpItem->pszText, phdi->cchTextMax); 599 strncpy(phdi->pszText, lpItem->pszText, phdi->cchTextMax); 598 lstrcpynWtoA (phdi->pszText, lpItem->pszText, phdi->cchTextMax); 600 599 else 601 600 phdi->pszText = LPSTR_TEXTCALLBACKA; … … 768 767 len = lstrlenA (phdi->pszText); 769 768 lpItem->pszText = COMCTL32_Alloc ((len+1)*sizeof(WCHAR)); 770 // lstrcpyAtoW (lpItem->pszText, phdi->pszText); 771 AsciiToUnicode(phdi->pszText, lpItem->pszText); 769 lstrcpyAtoW (lpItem->pszText, phdi->pszText); 772 770 } 773 771 else … … 976 974 INT len = lstrlenA (phdi->pszText); 977 975 lpItem->pszText = COMCTL32_Alloc ((len+1)*sizeof(WCHAR)); 978 // lstrcpyAtoW (lpItem->pszText, phdi->pszText); 979 AsciiToUnicode(phdi->pszText, lpItem->pszText); 976 lstrcpyAtoW (lpItem->pszText, phdi->pszText); 980 977 } 981 978 } -
trunk/src/comctl32/rebar.c
r60 r73 26 26 #include "commctrl.h" 27 27 #include "rebar.h" 28 #include "comctl32.h" 28 29 29 30 … … 637 638 if ((lprbbi->fMask & RBBIM_TEXT) && 638 639 (lprbbi->lpText) && (lpBand->lpText)) { 639 // lstrcpynWtoA (lprbbi->lpText, lpBand->lpText, lprbbi->cch); 640 strncpy(lprbbi->lpText, lpBand->lpText, lprbbi->cch); 640 lstrcpynWtoA (lprbbi->lpText, lpBand->lpText, lprbbi->cch); 641 641 } 642 642 … … 1001 1001 if (len > 0) { 1002 1002 lpBand->lpText = (LPWSTR)COMCTL32_Alloc ((len + 1)*sizeof(WCHAR)); 1003 // lstrcpyAtoW (lpBand->lpText, lprbbi->lpText); 1004 strcpy(lpBand->lpText, lprbbi->lpText); 1003 lstrcpyAtoW (lpBand->lpText, lprbbi->lpText); 1005 1004 } 1006 1005 } … … 1267 1266 INT len = lstrlenA (lprbbi->lpText); 1268 1267 lpBand->lpText = (LPWSTR)COMCTL32_Alloc ((len + 1)*sizeof(WCHAR)); 1269 // lstrcpyAtoW (lpBand->lpText, lprbbi->lpText); 1270 strcpy(lpBand->lpText, lprbbi->lpText); 1268 lstrcpyAtoW (lpBand->lpText, lprbbi->lpText); 1271 1269 } 1272 1270 } -
trunk/src/comctl32/status.c
r41 r73 369 369 result |= (part->style << 16); 370 370 if (lParam && LOWORD(result)) 371 // lstrcpyWtoA ((LPSTR)lParam, part->text); 372 strcpy((LPSTR)lParam, (char*)part->text); 371 lstrcpyWtoA((LPSTR)lParam, part->text); 373 372 } 374 373 return result; … … 660 659 if (text && (len = lstrlenA(text))) { 661 660 part->text = COMCTL32_Alloc ((len+1)*sizeof(WCHAR)); 662 // lstrcpyAtoW (part->text, text); 663 strcpy((char*)part->text, text); 661 lstrcpyAtoW (part->text, text); 664 662 } 665 663 } … … 841 839 if ((len = lstrlenA ((LPCSTR)lpCreate->lpszName))) { 842 840 self->parts[0].text = COMCTL32_Alloc ((len + 1)*sizeof(WCHAR)); 843 // lstrcpyAtoW (self->parts[0].text, (LPCSTR)lpCreate->lpszName); 844 strcpy((char*)self->parts[0].text, (LPCSTR)lpCreate->lpszName); 841 lstrcpyAtoW (self->parts[0].text, (LPCSTR)lpCreate->lpszName); 845 842 } 846 843 } … … 938 935 lstrcpyW ((LPWSTR)lParam, infoPtr->parts[0].text); 939 936 else 940 // lstrcpyWtoA ((LPSTR)lParam, infoPtr->parts[0].text); 941 strcpy((LPSTR)lParam, (char*)infoPtr->parts[0].text); 937 lstrcpyWtoA ((LPSTR)lParam, infoPtr->parts[0].text); 942 938 return len; 943 939 } … … 1055 1051 if (lParam && (len = lstrlenA((LPCSTR)lParam))) { 1056 1052 part->text = COMCTL32_Alloc ((len+1)*sizeof(WCHAR)); 1057 // lstrcpyAtoW (part->text, (LPCSTR)lParam); 1058 strcpy((char*)part->text, (LPCSTR)lParam); 1053 lstrcpyAtoW (part->text, (LPCSTR)lParam); 1059 1054 } 1060 1055 } -
trunk/src/comctl32/toolbar.c
r60 r73 1041 1041 infoPtr->strings[infoPtr->nNumStrings] = 1042 1042 COMCTL32_Alloc (sizeof(WCHAR)*(len+1)); 1043 // lstrcpyAtoW (infoPtr->strings[infoPtr->nNumStrings], szString); 1044 strcpy(infoPtr->strings[infoPtr->nNumStrings], szString); 1043 lstrcpyAtoW (infoPtr->strings[infoPtr->nNumStrings], szString); 1045 1044 infoPtr->nNumStrings++; 1046 1045 } … … 1072 1071 infoPtr->strings[infoPtr->nNumStrings] = 1073 1072 COMCTL32_Alloc (sizeof(WCHAR)*(len+1)); 1074 // lstrcpyAtoW (infoPtr->strings[infoPtr->nNumStrings], p); 1075 strcpy(infoPtr->strings[infoPtr->nNumStrings], p); 1073 lstrcpyAtoW (infoPtr->strings[infoPtr->nNumStrings], p); 1076 1074 infoPtr->nNumStrings++; 1077 1075 -
trunk/src/comctl32/tooltips.c
r60 r73 21 21 #include "commctrl.h" 22 22 #include "tooltips.h" 23 #include "comctl32.h" 23 24 24 25 … … 116 117 } 117 118 else if (ttnmdi.szText[0]) { 118 // lstrcpynAtoW (infoPtr->szTipText, ttnmdi.szText, 80); 119 strncpy(infoPtr->szTipText, ttnmdi.szText, 80); 119 lstrcpynAtoW (infoPtr->szTipText, ttnmdi.szText, 80); 120 120 if (ttnmdi.uFlags & TTF_DI_SETITEM) { 121 121 INT len = lstrlenA (ttnmdi.szText); 122 122 toolPtr->hinst = 0; 123 123 toolPtr->lpszText = COMCTL32_Alloc ((len+1)* sizeof(WCHAR)); 124 // lstrcpyAtoW (toolPtr->lpszText, ttnmdi.szText); 125 strcpy(toolPtr->lpszText, ttnmdi.szText); 124 lstrcpyAtoW (toolPtr->lpszText, ttnmdi.szText); 126 125 } 127 126 } … … 131 130 } 132 131 else if (ttnmdi.lpszText != LPSTR_TEXTCALLBACKA) { 133 // lstrcpynAtoW (infoPtr->szTipText, ttnmdi.lpszText, INFOTIPSIZE); 134 strncpy(infoPtr->szTipText, ttnmdi.lpszText, INFOTIPSIZE); 132 lstrcpynAtoW (infoPtr->szTipText, ttnmdi.lpszText, INFOTIPSIZE); 135 133 if (ttnmdi.uFlags & TTF_DI_SETITEM) { 136 134 INT len = lstrlenA (ttnmdi.lpszText); 137 135 toolPtr->hinst = 0; 138 136 toolPtr->lpszText = COMCTL32_Alloc ((len+1)*sizeof(WCHAR)); 139 // lstrcpyAtoW (toolPtr->lpszText, ttnmdi.lpszText); 140 strcpy(toolPtr->lpszText, ttnmdi.lpszText); 137 lstrcpyAtoW (toolPtr->lpszText, ttnmdi.lpszText); 141 138 } 142 139 } … … 616 613 // TRACE (tooltips, "add text \"%s\"!\n", lpToolInfo->lpszText); 617 614 toolPtr->lpszText = COMCTL32_Alloc ((len + 1)*sizeof(WCHAR)); 618 // lstrcpyAtoW (toolPtr->lpszText, lpToolInfo->lpszText); 619 strcpy(toolPtr->lpszText, lpToolInfo->lpszText); 615 lstrcpyAtoW (toolPtr->lpszText, lpToolInfo->lpszText); 620 616 } 621 617 } … … 1148 1144 if (nTool == -1) return 0; 1149 1145 1150 // lstrcpyWtoA (lpToolInfo->lpszText, infoPtr->tools[nTool].lpszText); 1151 strcpy(lpToolInfo->lpszText, infoPtr->tools[nTool].lpszText); 1146 lstrcpyWtoA (lpToolInfo->lpszText, infoPtr->tools[nTool].lpszText); 1152 1147 1153 1148 return 0; … … 1586 1581 INT len = lstrlenA (lpToolInfo->lpszText); 1587 1582 toolPtr->lpszText = COMCTL32_Alloc ((len+1)*sizeof(WCHAR)); 1588 // lstrcpyAtoW (toolPtr->lpszText, lpToolInfo->lpszText); 1589 strcpy(toolPtr->lpszText, lpToolInfo->lpszText); 1583 lstrcpyAtoW (toolPtr->lpszText, lpToolInfo->lpszText); 1590 1584 } 1591 1585 } … … 1755 1749 INT len = lstrlenA (lpToolInfo->lpszText); 1756 1750 toolPtr->lpszText = COMCTL32_Alloc ((len+1)*sizeof(WCHAR)); 1757 // lstrcpyAtoW (toolPtr->lpszText, lpToolInfo->lpszText); 1758 strcpy(toolPtr->lpszText, lpToolInfo->lpszText); 1751 lstrcpyAtoW (toolPtr->lpszText, lpToolInfo->lpszText); 1759 1752 } 1760 1753 } … … 2061 2054 if(wParam < length) 2062 2055 { 2063 // lstrcpynWtoA((LPSTR)lParam, infoPtr->szTipText,(UINT)wParam); 2064 strncpy((LPSTR)lParam, infoPtr->szTipText,(UINT)wParam); 2056 lstrcpynWtoA((LPSTR)lParam, infoPtr->szTipText,(UINT)wParam); 2065 2057 return wParam; 2066 2058 } 2067 // lstrcpyWtoA((LPSTR)lParam, infoPtr->szTipText); 2068 strcpy((LPSTR)lParam, infoPtr->szTipText); 2059 lstrcpyWtoA((LPSTR)lParam, infoPtr->szTipText); 2069 2060 return length; 2070 2061
Note:
See TracChangeset
for help on using the changeset viewer.